Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 178 for Reimplement (4.81 sec)

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

        assertEquals(asList(1, 2), partitions.get(0));
        assertEquals(asList(3), partitions.get(1));
      }
    
      @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT.
      @GwtIncompatible // ArrayList.subList doesn't implement RandomAccess in GWT.
      public void testPartitionRandomAccessTrue() {
        List<Integer> source = asList(1, 2, 3);
        List<List<Integer>> partitions = Lists.partition(source, 2);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Service.java

     * states it cannot ever leave them.
     *
     * <p>Implementors of this interface are strongly encouraged to extend one of the abstract classes
     * in this package which implement this interface and make the threading and state management
     * easier.
     *
     * @author Jesse Wilson
     * @author Luke Sandberg
     * @since 9.0 (in 1.0 as {@code com.google.common.base.Service})
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashFunction.java

     * convenient shortcut methods defined directly on {@link HashFunction} to make this easier.
     *
     * <p>Hasher accepts primitive data types, but can also accept any Object of type {@code T} provided
     * that you implement a {@link Funnel}{@code <T>} to specify how to "feed" data from that object
     * into the function. (See {@linkplain Hasher#putObject an example} of this.)
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedMap.java

         */
        @DoNotCall
        @Deprecated
        @Override
        public final ImmutableSortedMap<K, V> buildKeepingLast() {
          // TODO(emcmanus): implement
          throw new UnsupportedOperationException(
              "ImmutableSortedMap.Builder does not yet implement buildKeepingLast()");
        }
      }
    
      private final transient RegularImmutableSortedSet<K> keySet;
      private final transient ImmutableList<V> valueList;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Predicates {
      private Predicates() {}
    
      // TODO(kevinb): considering having these implement a VisitablePredicate
      // interface which specifies an accept(PredicateVisitor) method.
    
      /** Returns a predicate that always evaluates to {@code true}. */
      @GwtCompatible(serializable = true)
    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)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

     * that associates each key with a collection of values. All methods of {@link Multimap} are
     * supported, including those specified as optional in the interface.
     *
     * <p>To implement a multimap, a subclass must define the method {@link #createCollection()}, which
     * creates an empty collection of values for a key.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Lists.java

       * Instead, copy the list using {@link ImmutableList#copyOf(Collection)} (for example), then
       * serialize the copy. Other methods similar to this do not implement serialization at all for
       * this reason.
       *
       * <p><b>Java 8+ users:</b> many use cases for this method are better addressed by {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        futureResult.cancel(true);
        shouldCompleteFunction.countDown();
        try {
          futureResult.get();
          fail();
        } catch (CancellationException expected) {
        }
        // TODO(cpovirk): implement interruption, updating this test:
        // https://github.com/google/guava/issues/1989
        assertEquals(1, gotException.getCount());
        // gotException.await();
      }
    
    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)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              break;
            }
          }
        }
        return rValue;
      }
    
      /**
       * Subclasses can override this method to implement interruption of the future's computation. The
       * method is invoked automatically by a successful call to {@link #cancel(boolean) cancel(true)}.
       *
       * <p>The default implementation does nothing.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

            if (!removeEntry(e, e.getHash(), RemovalCause.SIZE)) {
              throw new AssertionError();
            }
          }
        }
    
        // TODO(fry): instead implement this with an eviction head
        @GuardedBy("this")
        ReferenceEntry<K, V> getNextEvictable() {
          for (ReferenceEntry<K, V> e : accessQueue) {
            int weight = e.getValueReference().getWeight();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top