Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Union (0.16 sec)

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

        enemies = Sets.newHashSet("Dick", "Harry", "Tom");
      }
    
      public void testUnion() {
        Set<String> all = Sets.union(friends, enemies);
        assertEquals(5, all.size());
    
        ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
        HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>());
    
        enemies.add("Buck");
        assertEquals(6, all.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetOperationsTest.java

        enemies = Sets.newHashSet("Dick", "Harry", "Tom");
      }
    
      public void testUnion() {
        Set<String> all = Sets.union(friends, enemies);
        assertEquals(5, all.size());
    
        ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
        HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>());
    
        enemies.add("Buck");
        assertEquals(6, all.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MultisetsTest.java

        assertThat(Multisets.union(ms1, ms2)).containsExactly("a", "a", "b", "b", "c");
      }
    
      public void testUnionEqualMultisets() {
        Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        assertEquals(ms1, Multisets.union(ms1, ms2));
      }
    
      public void testUnionEmptyNonempty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

          return ((Multiset<?>) elements).elementSet().size();
        }
        return 11; // initial capacity will be rounded up to 16
      }
    
      /**
       * Returns an unmodifiable view of the union of two multisets. In the returned multiset, the count
       * of each element is the <i>maximum</i> of its counts in the two backing multisets. The iteration
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        assertThat(Multisets.union(ms1, ms2)).containsExactly("a", "a", "b", "b", "c");
      }
    
      public void testUnionEqualMultisets() {
        Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        assertEquals(ms1, Multisets.union(ms1, ms2));
      }
    
      public void testUnionEmptyNonempty() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableRangeSet.java

        return result;
      }
    
      /**
       * Returns a new range set consisting of the union of this range set and {@code other}.
       *
       * <p>This is essentially the same as {@code TreeRangeSet.create(this).addAll(other)} except it
       * returns an {@code ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> union(RangeSet<C> other) {
        return unionOf(Iterables.concat(asRanges(), other.asRanges()));
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        return result;
      }
    
      /**
       * Returns a new range set consisting of the union of this range set and {@code other}.
       *
       * <p>This is essentially the same as {@code TreeRangeSet.create(this).addAll(other)} except it
       * returns an {@code ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> union(RangeSet<C> other) {
        return unionOf(Iterables.concat(asRanges(), other.asRanges()));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        this.selfLoopCount = checkNonNegative(selfLoopCount);
        checkState(selfLoopCount <= inEdgeMap.size() && selfLoopCount <= outEdgeMap.size());
      }
    
      @Override
      public Set<N> adjacentNodes() {
        return Sets.union(predecessors(), successors());
      }
    
      @Override
      public Set<E> incidentEdges() {
        return new AbstractSet<E>() {
          @Override
          public UnmodifiableIterator<E> iterator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

                                ? Sets.newHashSet(Arrays.asList(elements).subList(1, size))
                                : Sets.<String>newHashSet();
                        return Sets.union(set1, set2);
                      }
                    })
                .named("Sets.union")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

                .createTestSuite());
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(unionGenerator())
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .named("Multisets.union")
                .createTestSuite());
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(intersectionGenerator())
                .withFeatures(
                    CollectionSize.ANY,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.3K bytes
    - Viewed (0)
Back to top