Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for Sets (0.19 sec)

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

        return CartesianSet.create(sets);
      }
    
      /**
       * Returns every possible list that can be formed by choosing one element from each of the given
       * sets in order; the "n-ary <a href="http://en.wikipedia.org/wiki/Cartesian_product">Cartesian
       * product</a>" of the sets. For example:
       *
       * <pre>{@code
       * Sets.cartesianProduct(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        Set<Feature<?>> features = Sets.<Feature<?>>newHashSet(ExampleBaseFeature.BASE_FEATURE_1);
        assertSame(features, FeatureUtil.addImpliedFeatures(features));
      }
    
      public void testAddImpliedFeatures_addsImpliedFeatures() throws Exception {
        Set<Feature<?>> features;
    
        features = Sets.<Feature<?>>newHashSet(ExampleDerivedFeature.DERIVED_FEATURE_1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = Sets.newHashSet();
        expected.add(Helpers.mapEntry(k0(), (Collection<V>) Sets.newHashSet(v0(), v3())));
        expected.add(Helpers.mapEntry(k1(), (Collection<V>) Sets.newHashSet(v0())));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap().entrySet()).testEquals();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

     *   <li>{@code refreshAfterWrite=[duration]}: sets {@link CacheBuilder#refreshAfterWrite}.
     *   <li>{@code weakKeys}: sets {@link CacheBuilder#weakKeys}.
     *   <li>{@code softValues}: sets {@link CacheBuilder#softValues}.
     *   <li>{@code weakValues}: sets {@link CacheBuilder#weakValues}.
     *   <li>{@code recordStats}: sets {@link CacheBuilder#recordStats}.
     * </ul>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       */
      public final int length() {
        return longs.length();
      }
    
      /**
       * Gets the current value at position {@code i}.
       *
       * @param i the index
       * @return the current value
       */
      public final double get(int i) {
        return longBitsToDouble(longs.get(i));
      }
    
      /**
       * Atomically sets the element at position {@code i} to the given value.
       *
       * @param i the index
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

                    Maps.immutableEntry("bar", (Collection<Integer>) Sets.newHashSet(4, 5, 10, 11)),
                    Maps.immutableEntry("baz", (Collection<Integer>) Sets.newHashSet(7, 8)),
                    Maps.immutableEntry("dog", (Collection<Integer>) Sets.newHashSet(9)),
                    Maps.immutableEntry("cat", (Collection<Integer>) Sets.newHashSet(12, 13, 14))));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/AbstractNetwork.java

        EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network.
        Set<E> endpointPairIncidentEdges =
            Sets.union(incidentEdges(endpointPair.nodeU()), incidentEdges(endpointPair.nodeV()));
        return edgeInvalidatableSet(
            Sets.difference(endpointPairIncidentEdges, ImmutableSet.of(edge)), edge);
      }
    
      @Override
      public Set<E> edgesConnecting(N nodeU, N nodeV) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      static <K, V> Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
      }
    
      static <E> Set<E> newHashSetWithExpectedSize(int expectedSize) {
        return Sets.newHashSetWithExpectedSize(expectedSize);
      }
    
      static <E> Set<E> newConcurrentHashSet() {
        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

        assertEquals("[" + joiner.join(map.keySet()) + "]", map.keySet().toString());
        assertEquals("[" + joiner.join(map.values()) + "]", map.values().toString());
    
        assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet());
        assertEquals(Sets.newHashSet(map.keySet()), map.keySet());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 17 01:34:55 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testContains_nonNullSetYes() {
        Iterable<String> set = Sets.newHashSet("a", null, "b");
        assertTrue(FluentIterable.from(set).contains("b"));
      }
    
      public void testContains_nonNullSetNo() {
        Iterable<String> set = Sets.newHashSet("a", "b");
        assertFalse(FluentIterable.from(set).contains("c"));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
Back to top