本文整理汇总了Java中com.helger.commons.collection.ArrayHelper.getSize方法的典型用法代码示例。如果您正苦于以下问题:Java ArrayHelper.getSize方法的具体用法?Java ArrayHelper.getSize怎么用?Java ArrayHelper.getSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.helger.commons.collection.ArrayHelper
的用法示例。
在下文中一共展示了ArrayHelper.getSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFiltered
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@Nonnull
@ReturnsMutableCopy
public static <ELEMENTTYPE> CommonsVector <ELEMENTTYPE> createFiltered (@Nullable final Iterable <? extends ELEMENTTYPE> aValues,
@Nullable final Predicate <? super ELEMENTTYPE> aFilter)
{
final CommonsVector <ELEMENTTYPE> ret = new CommonsVector <> (ArrayHelper.getSize (aValues));
ret.addAll (aValues, aFilter);
return ret;
}
示例2: createFiltered
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@Nonnull
@ReturnsMutableCopy
public static <SRCTYPE, ELEMENTTYPE> CommonsArrayList <ELEMENTTYPE> createFiltered (@Nullable final Iterable <? extends SRCTYPE> aValues,
@Nullable final Predicate <? super SRCTYPE> aFilter,
@Nonnull final Function <? super SRCTYPE, ? extends ELEMENTTYPE> aMapper)
{
final CommonsArrayList <ELEMENTTYPE> ret = new CommonsArrayList <> (ArrayHelper.getSize (aValues));
ret.addAllMapped (aValues, aFilter, aMapper);
return ret;
}
示例3: CommonsHashSet
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@SafeVarargs
public CommonsHashSet (@Nullable final ELEMENTTYPE... aValues)
{
super (ArrayHelper.getSize (aValues));
addAll (aValues);
}
示例4: CommonsVector
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@SafeVarargs
public CommonsVector (@Nullable final ELEMENTTYPE... aValues)
{
super (ArrayHelper.getSize (aValues));
addAll (aValues);
}
示例5: CommonsArrayList
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@SafeVarargs
public CommonsArrayList (@Nullable final ELEMENTTYPE... aValues)
{
super (ArrayHelper.getSize (aValues));
addAll (aValues);
}
示例6: CommonsLinkedHashSet
import com.helger.commons.collection.ArrayHelper; //导入方法依赖的package包/类
@SafeVarargs
public CommonsLinkedHashSet (@Nullable final ELEMENTTYPE... aValues)
{
super (ArrayHelper.getSize (aValues));
addAll (aValues);
}