Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 63 of 63 for ImmutableCollection (0.1 sec)

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

        Collection<Integer> reserializedValues = reserialize(map.values());
        assertEquals(Lists.newArrayList(map.values()), Lists.newArrayList(reserializedValues));
        assertTrue(reserializedValues instanceof ImmutableCollection);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testKeySetIsSerializable_regularImmutableMap() {
        class NonSerializableClass {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link NavigableSet} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * <p><b>Warning:</b> as with any sorted collection, you are strongly advised not to use a {@link
     * Comparator} or {@link Comparable} type whose comparison behavior is <i>inconsistent with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       * @since 12.0
       */
      public static <E extends @Nullable Object> NavigableSet<E> unmodifiableNavigableSet(
          NavigableSet<E> set) {
        if (set instanceof ImmutableCollection || set instanceof UnmodifiableNavigableSet) {
          return set;
        }
        return new UnmodifiableNavigableSet<>(set);
      }
    
      static final class UnmodifiableNavigableSet<E extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top