当前位置: 首页>>代码示例>>Java>>正文


Java IntHashSet.addAll方法代码示例

本文整理汇总了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);
}
 
开发者ID:goldmansachs,项目名称:reladomo,代码行数:27,代码来源:TestMariaGeneralTestCases.java

示例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);
}
 
开发者ID:goldmansachs,项目名称:reladomo,代码行数:13,代码来源:TestSybaseIqGeneralTestCases.java

示例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);
}
 
开发者ID:goldmansachs,项目名称:reladomo,代码行数:13,代码来源:TestSybaseIqGeneralTestCases.java

示例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);
}
 
开发者ID:goldmansachs,项目名称:reladomo,代码行数:13,代码来源:TestMariaGeneralTestCases.java

示例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);
}
 
开发者ID:goldmansachs,项目名称:reladomo,代码行数:13,代码来源:TestMariaGeneralTestCases.java


注:本文中的com.gs.collections.impl.set.mutable.primitive.IntHashSet.addAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。