Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for ElementSet (0.07 sec)

  1. android/guava/src/com/google/common/collect/DescendingMultiset.java

        }
        return result;
      }
    
      @LazyInit @CheckForNull private transient NavigableSet<E> elementSet;
    
      @Override
      public NavigableSet<E> elementSet() {
        NavigableSet<E> result = elementSet;
        if (result == null) {
          return elementSet = new SortedMultisets.NavigableElementSet<>(this);
        }
        return result;
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ForwardingMultiset.java

      @CanIgnoreReturnValue
      @Override
      public int remove(@CheckForNull Object element, int occurrences) {
        return delegate().remove(element, occurrences);
      }
    
      @Override
      public Set<E> elementSet() {
        return delegate().elementSet();
      }
    
      @Override
      public Set<Entry<E>> entrySet() {
        return delegate().entrySet();
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                          builder.addCopies(s, 2);
                        }
                        ImmutableSet<String> elementSet =
                            (ImmutableSet<String>) builder.build().elementSet();
                        return elementSet.asList();
                      }
                    })
                .named("ImmutableMultiset.elementSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

          return (Multiset<E>) delegate;
        }
    
        @LazyInit @CheckForNull transient Set<E> elementSet;
    
        Set<E> createElementSet() {
          return Collections.<E>unmodifiableSet(delegate.elementSet());
        }
    
        @Override
        public Set<E> elementSet() {
          Set<E> es = elementSet;
          return (es == null) ? elementSet = createElementSet() : es;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multisets.java

          return (Multiset<E>) delegate;
        }
    
        @LazyInit @CheckForNull transient Set<E> elementSet;
    
        Set<E> createElementSet() {
          return Collections.<E>unmodifiableSet(delegate.elementSet());
        }
    
        @Override
        public Set<E> elementSet() {
          Set<E> es = elementSet;
          return (es == null) ? elementSet = createElementSet() : es;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/SortedMultisetBridge.java

     * to ensure binary compatibility with older Guava versions that specified {@code elementSet()} to
     * return {@code SortedSet}.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    interface SortedMultisetBridge<E extends @Nullable Object> extends Multiset<E> {
      @Override
      SortedSet<E> elementSet();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingMultiset.java

      @CanIgnoreReturnValue
      @Override
      public int remove(@CheckForNull Object element, int occurrences) {
        return delegate().remove(element, occurrences);
      }
    
      @Override
      public Set<E> elementSet() {
        return delegate().elementSet();
      }
    
      @Override
      public Set<Entry<E>> entrySet() {
        return delegate().entrySet();
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

        ms.add("b", 2);
        ms.add("c");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.remove("b");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.add("b");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.remove("b", 2);
        ms.add("b");
        assertThat(ms.elementSet()).containsExactly("a", "c", "b").inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

        return delegateMap.getOrDefault(element, 0);
      }
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      @Override
      public ImmutableSet<E> elementSet() {
        ImmutableSet<E> result = elementSet;
        return (result == null) ? elementSet = new ElementSet<>(entries, this) : result;
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return entries.get(index);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry((K) null, 2), Multisets.immutableEntry(k1(), 1));
      }
    
      public void testKeysElementSet() {
        assertEquals(multimap().keySet(), multimap().keys().elementSet());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testKeysRemove() {
        int original = multimap().keys().remove(k0(), 1);
        assertEquals(max(original - 1, 0), multimap().get(k0()).size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top