Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newIdentityHashSet (0.07 sec)

  1. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

                Currency.PESO, Country.CHILE,
                Currency.FRANC, Country.SWITZERLAND);
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
        Set<Object> uniqueEntries = Sets.newIdentityHashSet();
        uniqueEntries.addAll(bimap.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerializable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        TreeSet<Integer> set = Sets.newTreeSet(SOME_COMPARATOR);
        verifySortedSetContents(set, EMPTY_COLLECTION, SOME_COMPARATOR);
      }
    
      public void testNewIdentityHashSet() {
        Set<Integer> set = Sets.newIdentityHashSet();
        Integer value1 = new Integer(12357);
        Integer value2 = new Integer(12357);
        assertTrue(set.add(value1));
        assertFalse(set.contains(value2));
        assertTrue(set.contains(value1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
Back to top