Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 212 for multiSeg (0.15 sec)

  1. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/HashMultiset.java

       *
       * @param elements the elements that the multiset should contain
       */
      public static <E extends @Nullable Object> HashMultiset<E> create(
          Iterable<? extends E> elements) {
        HashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements));
        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      HashMultiset(int distinctElements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultiset.java

        Multiset<E> multiset = LinkedHashMultiset.create();
        Iterators.addAll(multiset, elements);
        return copyFromEntries(multiset.entrySet());
      }
    
      private static <E> ImmutableMultiset<E> copyFromElements(E... elements) {
        Multiset<E> multiset = LinkedHashMultiset.create();
        Collections.addAll(multiset, elements);
        return copyFromEntries(multiset.entrySet());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      public void testEmptyRangeSubMultiset(SortedMultiset<E> multiset) {
        assertTrue(multiset.isEmpty());
        assertEquals(0, multiset.size());
        assertEquals(0, multiset.toArray().length);
        assertTrue(multiset.entrySet().isEmpty());
        assertFalse(multiset.iterator().hasNext());
        assertEquals(0, multiset.entrySet().size());
        assertEquals(0, multiset.entrySet().toArray().length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

      public void testCreation_noArgs() {
        Multiset<String> multiset = ImmutableSortedMultiset.of();
        assertTrue(multiset.isEmpty());
      }
    
      public void testCreation_oneElement() {
        Multiset<String> multiset = ImmutableSortedMultiset.of("a");
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
      public void testCreation_twoElements() {
        Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       *
       * @param elements the elements that the multiset should contain
       */
      public static <E> ConcurrentHashMultiset<E> create(Iterable<? extends E> elements) {
        ConcurrentHashMultiset<E> multiset = ConcurrentHashMultiset.create();
        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multisets.java

       * result in an {@link UnsupportedOperationException}.
       *
       * <p>The returned multiset will be serializable if the specified multiset is serializable.
       *
       * @param multiset the multiset for which an unmodifiable view is to be generated
       * @return an unmodifiable view of the multiset
       */
      public static <E extends @Nullable Object> Multiset<E> unmodifiableMultiset(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

       * result in an {@link UnsupportedOperationException}.
       *
       * <p>The returned multiset will be serializable if the specified multiset is serializable.
       *
       * @param multiset the multiset for which an unmodifiable view is to be generated
       * @return an unmodifiable view of the multiset
       */
      public static <E extends @Nullable Object> Multiset<E> unmodifiableMultiset(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        FEMALE
      }
    
      public void testClassCreate() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.RED);
        ms.add(Color.YELLOW);
        ms.add(Color.RED);
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 16:35:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

    /**
     * Optional features of classes derived from {@link Multiset}.
     *
     * @author Louis Wasserman
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum MultisetFeature implements Feature<Multiset> {
      /**
       * Indicates that elements from {@code Multiset.entrySet()} update to reflect changes in the
       * backing multiset.
       */
      ENTRIES_ARE_VIEWS;
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top