Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for ImmutableMultiset (0.1 sec)

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

        doHasAllFauxveridesTest(ImmutableSortedSet.class, ImmutableSet.class);
      }
    
      public void testImmutableSortedMultiset() {
        doHasAllFauxveridesTest(ImmutableSortedMultiset.class, ImmutableMultiset.class);
      }
    
      /*
       * Demonstrate that ClassCastException is possible when calling
       * ImmutableSorted{Set,Map}.copyOf(), whose type parameters we are unable to
       * restrict (see ImmutableSortedSetFauxverideShim).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        doHasAllFauxveridesTest(ImmutableSortedSet.class, ImmutableSet.class);
      }
    
      public void testImmutableSortedMultiset() {
        doHasAllFauxveridesTest(ImmutableSortedMultiset.class, ImmutableMultiset.class);
      }
    
      /*
       * Demonstrate that ClassCastException is possible when calling
       * ImmutableSorted{Set,Map}.copyOf(), whose type parameters we are unable to
       * restrict (see ImmutableSortedSetFauxverideShim).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/MediaType.java

      public ImmutableListMultimap<String, String> parameters() {
        return parameters;
      }
    
      private Map<String, ImmutableMultiset<String>> parametersAsMap() {
        return Maps.transformValues(parameters.asMap(), ImmutableMultiset::copyOf);
      }
    
      /**
       * Returns an optional charset for the value of the charset parameter if it is specified.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        ImmutableMultisetImpl {
          @Override
          public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) {
            return ImmutableMultiset.copyOf(contents);
          }
        };
      }
    
      enum SortedMultisetImpl implements CollectionsImplEnum {
        TreeMultisetImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableCollection.java

     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
     *       ImmutableMultiset#elementSet} iterate in the same order as the parent, except as noted.
     *   <li><b>Thread safety.</b> It is safe to access this collection concurrently from multiple
     *       threads.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multiset.java

     * element (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     * multiset. Undefined behavior and bugs will result.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableMultiset}
     *   <li>{@link ImmutableSortedMultiset}
     *   <li>{@link HashMultiset}
     *   <li>{@link LinkedHashMultiset}
     *   <li>{@link TreeMultiset}
     *   <li>{@link EnumMultiset}
     *   <li>{@link ConcurrentHashMultiset}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multiset.java

     * element (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     * multiset. Undefined behavior and bugs will result.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableMultiset}
     *   <li>{@link ImmutableSortedMultiset}
     *   <li>{@link HashMultiset}
     *   <li>{@link LinkedHashMultiset}
     *   <li>{@link TreeMultiset}
     *   <li>{@link EnumMultiset}
     *   <li>{@link ConcurrentHashMultiset}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertSame(immutableList, Iterables.unmodifiableIterable((List<String>) immutableList));
      }
    
      public void testFrequency_multiset() {
        Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a", "c", "b", "a");
        assertEquals(3, frequency(multiset, "a"));
        assertEquals(2, frequency(multiset, "b"));
        assertEquals(1, frequency(multiset, "c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Synchronized.java

      }
    
      static <E extends @Nullable Object> Multiset<E> multiset(
          Multiset<E> multiset, @CheckForNull Object mutex) {
        if (multiset instanceof SynchronizedMultiset || multiset instanceof ImmutableMultiset) {
          return multiset;
        }
        return new SynchronizedMultiset<>(multiset, mutex);
      }
    
      static final class SynchronizedMultiset<E extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Synchronized.java

      }
    
      static <E extends @Nullable Object> Multiset<E> multiset(
          Multiset<E> multiset, @CheckForNull Object mutex) {
        if (multiset instanceof SynchronizedMultiset || multiset instanceof ImmutableMultiset) {
          return multiset;
        }
        return new SynchronizedMultiset<>(multiset, mutex);
      }
    
      static final class SynchronizedMultiset<E extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
Back to top