本文整理汇总了Java中com.gs.collections.impl.set.mutable.primitive.IntHashSet.addAll方法的典型用法代码示例。如果您正苦于以下问题:Java IntHashSet.addAll方法的具体用法?Java IntHashSet.addAll怎么用?Java IntHashSet.addAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.gs.collections.impl.set.mutable.primitive.IntHashSet
的用法示例。
在下文中一共展示了IntHashSet.addAll方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testDayOfMonthTimestampRetrieval
import com.gs.collections.impl.set.mutable.primitive.IntHashSet; //导入方法依赖的package包/类
public void testDayOfMonthTimestampRetrieval()
{
AllTypesList list = AllTypesFinder.findMany(AllTypesFinder.timestampValue().dayOfMonth().eq(1));
assertEquals(1, list.size());
IntHashSet intSet = new IntHashSet();
intSet.addAll(1, 2, 3, 4);
Operation eq2 = TimestampConversionFinder.timestampValueNone().dayOfMonth().in(intSet);
TimestampConversionList one2 = TimestampConversionFinder.findMany(eq2);
int size2 = one2.size();
assertEquals(4, size2);
IntHashSet intSet2 = new IntHashSet();
intSet2.addAll(1, 2, 3, 4);
Operation eq3 = TimestampConversionFinder.timestampValueUTC().dayOfMonth().in(intSet2);
TimestampConversionList one3 = TimestampConversionFinder.findMany(eq3);
int size3 = one3.size();
assertEquals(2, size3);
IntHashSet intSet3 = new IntHashSet();
intSet3.addAll(1, 2, 3, 4);
Operation eq4 = TimestampConversionFinder.timestampValueDB().dayOfMonth().in(intSet3);
TimestampConversionList one4 = TimestampConversionFinder.findMany(eq4);
int size4 = one4.size();
assertEquals(3, size4);
}
示例2: testDateMonthRetrieval
import com.gs.collections.impl.set.mutable.primitive.IntHashSet; //导入方法依赖的package包/类
public void testDateMonthRetrieval()
{
AllTypesIqList list = AllTypesIqFinder.findMany(AllTypesIqFinder.dateValue().month().eq(1));
assertEquals(1, list.size());
IntHashSet intSet = new IntHashSet();
intSet.addAll(1, 2, 3, 4);
Operation eq2 = AllTypesIqFinder.dateValue().month().in(intSet);
AllTypesIqList one2 = AllTypesIqFinder.findMany(eq2);
int size2 = one2.size();
assertEquals(4, size2);
}
示例3: testDateDayOfMonthRetrieval
import com.gs.collections.impl.set.mutable.primitive.IntHashSet; //导入方法依赖的package包/类
public void testDateDayOfMonthRetrieval()
{
AllTypesIqList list = AllTypesIqFinder.findMany(AllTypesIqFinder.dateValue().dayOfMonth().eq(1));
assertEquals(10, list.size());
IntHashSet intSet = new IntHashSet();
intSet.addAll(1, 2, 3, 4);
Operation eq2 = AllTypesIqFinder.dateValue().dayOfMonth().in(intSet);
AllTypesIqList one2 = AllTypesIqFinder.findMany(eq2);
int size2 = one2.size();
assertEquals(10, size2);
}
示例4: testDateMonthRetrieval
import com.gs.collections.impl.set.mutable.primitive.IntHashSet; //导入方法依赖的package包/类
public void testDateMonthRetrieval()
{
AllTypesList list = AllTypesFinder.findMany(AllTypesFinder.dateValue().month().eq(1));
assertEquals(1, list.size());
IntHashSet intSet = new IntHashSet();
intSet.addAll(1, 2, 3, 4);
Operation eq2 = AllTypesFinder.dateValue().month().in(intSet);
AllTypesList one2 = AllTypesFinder.findMany(eq2);
int size2 = one2.size();
assertEquals(4, size2);
}
示例5: testDateDayOfMonthRetrieval
import com.gs.collections.impl.set.mutable.primitive.IntHashSet; //导入方法依赖的package包/类
public void testDateDayOfMonthRetrieval()
{
AllTypesList list = AllTypesFinder.findMany(AllTypesFinder.dateValue().dayOfMonth().eq(1));
assertEquals(10, list.size());
IntHashSet intSet = new IntHashSet();
intSet.addAll(1, 2, 3, 4);
Operation eq2 = AllTypesFinder.dateValue().dayOfMonth().in(intSet);
AllTypesList one2 = AllTypesFinder.findMany(eq2);
int size2 = one2.size();
assertEquals(10, size2);
}