Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for elementSet (0.24 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

              parentBuilder) {
        return SetTestSuiteBuilder.using(
                new ElementSetGenerator<E>(parentBuilder.getSubjectGenerator()))
            .named(getName() + ".elementSet")
            .withFeatures(computeElementSetFeatures(parentBuilder.getFeatures()))
            .suppressing(parentBuilder.getSuppressedTests())
            .withSetUp(parentBuilder.getSetUp())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetFirst() {
        assertNull(sortedMultiset.firstEntry());
        assertThrows(NoSuchElementException.class, () -> sortedMultiset.elementSet().first());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetPollFirst() {
        assertNull(sortedMultiset.pollFirstEntry());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

            @Override
            Iterator<Entry<E>> entryIterator() {
              return backingMultiset.descendingMultiset().entrySet().iterator();
            }
          };
        }
    
        @Override
        public NavigableSet<E> elementSet() {
          return new StandardElementSet();
        }
    
        @Override
        public Entry<E> firstEntry() {
          return standardFirstEntry();
        }
    
        @Override
        public Entry<E> lastEntry() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1) {
        RegularImmutableSortedSet<E> elementSet =
            (RegularImmutableSortedSet<E>) ImmutableSortedSet.of(e1);
        long[] cumulativeCounts = {0, 1};
        return new RegularImmutableSortedMultiset<>(elementSet, cumulativeCounts, 0, 1);
      }
    
      /**
       * Returns an immutable sorted multiset containing the given elements sorted by their natural
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p>A common use for the element set is to find the number of distinct elements in the multiset:
       * {@code elementSet().size()}.
       *
       * @return a view of the set of distinct elements in this multiset
       */
      Set<E> elementSet();
    
      /**
       * Returns a view of the contents of this multiset, grouped into {@code Multiset.Entry} instances,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

                        }
                        return builder.build().elementSet().asList();
                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Ordering.natural().sortedCopy(insertionOrder);
                      }
                    })
                .named("ImmutableSortedMultiset.elementSet.asList")
                .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

      }
    
      @CheckForNull @LazyInit private transient Reference<Multiset<N>> adjacentNodesReference;
    
      @Override
      public Set<N> adjacentNodes() {
        return Collections.unmodifiableSet(adjacentNodesMultiset().elementSet());
      }
    
      private Multiset<N> adjacentNodesMultiset() {
        Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
        if (adjacentNodes == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multiset.java

       *
       * <p>A common use for the element set is to find the number of distinct elements in the multiset:
       * {@code elementSet().size()}.
       *
       * @return a view of the set of distinct elements in this multiset
       */
      Set<E> elementSet();
    
      /**
       * Returns a view of the contents of this multiset, grouped into {@code Multiset.Entry} instances,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Synchronized.java

            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
        @Override
        public Set<E> elementSet() {
          synchronized (mutex) {
            if (elementSet == null) {
              elementSet = typePreservingSet(delegate().elementSet(), mutex);
            }
            return elementSet;
          }
        }
    
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          synchronized (mutex) {
    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

            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
        @Override
        public Set<E> elementSet() {
          synchronized (mutex) {
            if (elementSet == null) {
              elementSet = typePreservingSet(delegate().elementSet(), mutex);
            }
            return elementSet;
          }
        }
    
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          synchronized (mutex) {
    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