本文整理匯總了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);
}