Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for members (0.78 sec)

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

        assertEquals(42, queue.maximumSize);
        checkNatural(queue);
      }
    
      private static final ImmutableList<Integer> NUMBERS = ImmutableList.of(4, 8, 15, 16, 23, 42);
    
      public void testCreation_withContents() {
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create(NUMBERS);
        assertEquals(6, queue.size());
        assertEquals(11, queue.capacity());
        checkUnbounded(queue);
        checkNatural(queue);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ArrayListMultimap.java

          ArrayListMultimap<K, V> create() {
        return new ArrayListMultimap<>();
      }
    
      /**
       * Constructs an empty {@code ArrayListMultimap} with enough capacity to hold the specified
       * numbers of keys and values without resizing.
       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys(expectedKeys).arrayListValues(expectedValuesPerKey).build()}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Predicates.java

        return new SubtypeOfPredicate(clazz);
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object reference being tested is a
       * member of the given collection. It does not defensively copy the collection passed in, so
       * future changes to it will alter the behavior of the predicate.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       * roughly) 2.5s longer. (2.5s is also the maximum length of time we will wait for a timed get
       * that is expected to succeed; the fact that the numbers match is only a coincidence.) See the
       * comment below for how to restore the fast but hang-y version.
       */
      @J2ktIncompatible
      @GwtIncompatible // used only in GwtIncompatible tests
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       *
       * @param collection the presumed-immutable collection
       * @param sampleElement an element of the same type as that contained by {@code collection}.
       *     {@code collection} may or may not have {@code sampleElement} as a member.
       */
      public static <E extends @Nullable Object> void assertCollectionIsUnmodifiable(
          Collection<E> collection, E sampleElement) {
        Collection<E> siblingCollection = new ArrayList<>();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

        Ordering<Number> i = numbers.compound(objects.compound(objects));
        Ordering<Number> j = objects.compound(numbers.compound(objects)); // bad IDEA
        Ordering<Number> k = objects.compound(objects.compound(numbers));
    
        // You can also arbitrarily assign a more restricted type - not an intended
        // feature, exactly, but unavoidable (I think) and harmless
        Ordering<Integer> l = objects.compound(numbers);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        Ordering<Number> i = numbers.compound(objects.compound(objects));
        Ordering<Number> j = objects.compound(numbers.compound(objects)); // bad IDEA
        Ordering<Number> k = objects.compound(objects.compound(numbers));
    
        // You can also arbitrarily assign a more restricted type - not an intended
        // feature, exactly, but unavoidable (I think) and harmless
        Ordering<Integer> l = objects.compound(numbers);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java

     * com.google.common.net.InternetDomainName}.</b>
     *
     * <p>A generated static class containing public members which provide domain name patterns used in
     * determining whether a given domain name is an effective top-level domain (public suffix).
     *
     * <p>Because this class is used in GWT, the data members are stored in a space-efficient manner.
     * See {@link TrieParser}.
     *
     * @since 16.0
     */
    @GwtCompatible
    @Beta
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 21 21:04:43 GMT 2024
    - 72.4K bytes
    - Viewed (1)
  9. guava-tests/test/com/google/common/collect/StreamsTest.java

        AtomicInteger numbersCloseCount = new AtomicInteger();
        Stream<Integer> numbers = Stream.of(1, 2, 3).onClose(numbersCloseCount::incrementAndGet);
    
        Stream<String> zipped = Streams.zip(letters, numbers, (a, b) -> a + ":" + b);
    
        zipped.close();
    
        assertThat(lettersCloseCount.get()).isEqualTo(1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/HashMultisetTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
        MultisetHolder(Multiset<?> multiset) {
          this.member = multiset;
        }
    
        private static final long serialVersionUID = 1L;
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top