Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 455 for once (0.14 sec)

  1. guava/src/com/google/common/collect/ImmutableCollection.java

     *   <li>The {@code copyOf} methods will sometimes recognize that the actual copy operation is
     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        ImmutableSet<SomeEnum> none = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
        assertThat(none).isEmpty();
    
        ImmutableSet<SomeEnum> one = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
        assertThat(one).contains(SomeEnum.B);
    
        ImmutableSet<SomeEnum> two = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B));
    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. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          while (referenceQueue.poll() != null) {}
        }
    
        /** Returns first entry of bin for given hash. */
        @CheckForNull
        E getFirst(int hash) {
          // read this volatile field only once
          AtomicReferenceArray<E> table = this.table;
          return table.get(hash & (table.length() - 1));
        }
    
        // Specialized implementations of map methods
    
        @CheckForNull
    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)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          lastItem = tmp;
        }
        assertEquals((Integer) 30, lastItem);
      }
    
      /**
       * This tests a special case where removeAt has to trickle an element first down one level from a
       * min to a max level, then up one level above the index of the removed element. It also tests
       * that skipMe in the iterator plays nicely with forgetMeNot.
       */
      public void testIteratorInvalidatingIteratorRemove2() {
    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)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertThat(set).containsExactly("a", "in", "the", "over", "quick", "jumped").inOrder();
        assertSame(STRING_LENGTH, set.comparator());
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedSet once CollectorTester is usable.
      public void testToImmutableSortedSet_java7() {
        // Note that a Collector should generally enforce consistent comparator between builders
        ImmutableSortedSet.Builder<String> zis =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Suppliers.java

       * href="http://en.wikipedia.org/wiki/Memoization">memoization</a>
       *
       * <p>The returned supplier is thread-safe. The delegate's {@code get()} method will be invoked at
       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
       * form does not contain the cached value, which will be recalculated when {@code get()} is called
       * on the deserialized instance.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       *
       * <p>Note that if {@code s} is a {@code Multiset<String>}, then {@code
       * ImmutableSortedMultiset.copyOf(s)} returns an {@code ImmutableSortedMultiset<String>}
       * containing each of the strings in {@code s}, while {@code ImmutableSortedMultiset.of(s)}
       * returns an {@code ImmutableSortedMultiset<Multiset<String>>} containing one element (the given
       * multiset itself).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *   <li>The {@code copyOf} methods will sometimes recognize that the actual copy operation is
     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

       * that accepts zero or more arguments, all of type {@code String} or {@code Throwable}
       * (preferring constructors with at least one {@code String}, then preferring constructors with at
       * least one {@code Throwable}) and calling the constructor via reflection. If the exception did
       * not already have a cause, one is set by calling {@link Throwable#initCause(Throwable)} on it.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableTableTest.java

                .put("one", "eins", 1)
                .put("two", "twei", 2);
        ImmutableTable<String, String, Integer> table = zis.combine(zat).build();
        ImmutableTable<String, String, Integer> expected =
            ImmutableTable.<String, String, Integer>builder()
                .put("one", "uno", 1)
                .put("two", "dos", 2)
                .put("one", "eins", 1)
                .put("two", "twei", 2)
                .build();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 19.6K bytes
    - Viewed (0)
Back to top