Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Sets (0.13 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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        checkHashCode(Sets.cartesianProduct(set(num), mt));
        checkHashCode(Sets.cartesianProduct(set(num), set(1)));
        checkHashCode(Sets.cartesianProduct(set(1), set(2, num)));
        checkHashCode(Sets.cartesianProduct(set(1, num), set(2, num - 1)));
        checkHashCode(Sets.cartesianProduct(set(1, num), set(2, num - 1), set(3, num + 1)));
    
        // a bigger one
        checkHashCode(
    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)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        assertThat(map.entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("two", 3), mapEntry("three", 5))
            .inOrder();
      }
    
      public void testAsMapReadsThrough() {
        Set<String> strings = Sets.newLinkedHashSet();
        Collections.addAll(strings, "one", "two", "three");
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertThat(map.entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("two", 3), mapEntry("three", 5))
            .inOrder();
      }
    
      public void testAsMapReadsThrough() {
        Set<String> strings = Sets.newLinkedHashSet();
        Collections.addAll(strings, "one", "two", "three");
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      /** All waiting threads. */
      @CheckForNull private volatile Waiter waiters;
    
      /** Constructor for use by subclasses. */
      protected AbstractFuture() {}
    
      // Gets and Timed Gets
      //
      // * Be responsive to interruption
      // * Don't create Waiter nodes if you aren't going to park, this helps reduce contention on the
      //   waiters field.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <p>Note: the multimap assumes complete ownership over of {@code map} and the sets returned by
       * {@code factory}. Those objects should not be manually updated and they should not use soft,
       * weak, or phantom references.
       *
       * @param map place to store the mapping from each key to its corresponding values
       * @param factory supplier of new, empty sets that will each hold all values for a given key
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       */
      interface InternalEntry<K, V, E extends InternalEntry<K, V, E>> {
        /** Gets the next entry in the chain. */
        E getNext();
    
        /** Gets the entry's hash. */
        int getHash();
    
        /** Gets the key for this entry. */
        K getKey();
    
        /** Gets the value for the entry. */
        V getValue();
      }
    
      /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThat(alreadyThere).containsExactly("already", "there", "freshly", "added");
        assertTrue(changed);
      }
    
      public void testAddAllToSet() {
        Set<String> alreadyThere = Sets.newLinkedHashSet(asList("already", "there"));
        List<String> oneMore = Lists.newArrayList("there");
    
        boolean changed = Iterators.addAll(alreadyThere, oneMore.iterator());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheBuilder.java

     * href="https://www.javadoc.io/doc/com.github.ben-manes.caffeine/guava/latest/com.github.benmanes.caffeine.guava/com/github/benmanes/caffeine/guava/CaffeinatedGuava.html">its
     * {@code CaffeinatedGuava} adapter class</a>, which lets you build a Guava {@code Cache} or a Guava
     * {@code LoadingCache} backed by a Guava {@code CacheLoader}.
     *
     * <p>Caffeine's API for asynchronous operations uses {@code CompletableFuture}: <a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o == this) {
            return true;
          }
          synchronized (mutex) {
            return Sets.equalsImpl(delegate(), o);
          }
        }
    
        @Override
        public boolean remove(@CheckForNull Object o) {
          synchronized (mutex) {
            return Maps.removeEntryImpl(delegate(), o);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
Back to top