Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 63 for ImmutableCollection (0.43 sec)

  1. guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      @LazyInit @RetainedWith @CheckForNull private transient ImmutableCollection<V> values;
    
      /**
       * Returns an immutable collection of the values in this map, in the same order that they appear
       * in {@link #entrySet}.
       */
      @Override
      public ImmutableCollection<V> values() {
        ImmutableCollection<V> result = values;
        return (result == null) ? values = createValues() : result;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

      public int size() {
        return 1;
      }
    
      @Override
      ImmutableSet<Cell<R, C, V>> createCellSet() {
        return ImmutableSet.of(cellOf(singleRowKey, singleColumnKey, singleValue));
      }
    
      @Override
      ImmutableCollection<V> createValues() {
        return ImmutableSet.of(singleValue);
      }
    
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries,
          @CheckForNull Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableSet<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        @GwtIncompatible // serialization
        Object writeReplace() {
          return super.writeReplace();
        }
      }
    
      abstract V getValue(int iterationIndex);
    
      @Override
      final ImmutableCollection<V> createValues() {
        return isEmpty() ? ImmutableList.<V>of() : new Values();
      }
    
      @WeakOuter
      private final class Values extends ImmutableList<V> {
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java

      static <E> Collection<E> reserializeAndAssertElementsEqual(Collection<E> original) {
        Collection<E> copy = reserialize(original);
        assertTrue(elementsEqual(original, copy));
        assertTrue(copy instanceof ImmutableCollection);
        return copy;
      }
    
      private LenientSerializableTester() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

      static <E> Collection<E> reserializeAndAssertElementsEqual(Collection<E> original) {
        Collection<E> copy = reserialize(original);
        assertTrue(elementsEqual(original, copy));
        assertTrue(copy instanceof ImmutableCollection);
        return copy;
      }
    
      private LenientSerializableTester() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSetMultimap.java

          Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries,
          @CheckForNull Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableSet<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertNotInstantiable(new TypeToken<ImmutableMultiset<EmptyEnum>>() {});
      }
    
      public void testImmutableCollection() {
        assertFreshInstance(new TypeToken<ImmutableCollection<String>>() {});
        assertNotInstantiable(new TypeToken<ImmutableCollection<EmptyEnum>>() {});
      }
    
      public void testImmutableMap() {
        assertFreshInstance(new TypeToken<ImmutableMap<String, Integer>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMapValues.java

     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class ImmutableMapValues<K, V> extends ImmutableCollection<V> {
      private final ImmutableMap<K, V> map;
    
      ImmutableMapValues(ImmutableMap<K, V> map) {
        this.map = map;
      }
    
      @Override
      public int size() {
        return map.size();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.ClassToInstanceMap;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.ImmutableClassToInstanceMap;
    import com.google.common.collect.ImmutableCollection;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableListMultimap;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableMultimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top