Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 610 for Implementation (0.35 sec)

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

        // TODO(kevinb): if we change this implementation, add full unit tests.
        return this.<E>reverse().leastOf(iterable, k);
      }
    
      /**
       * Returns the {@code k} greatest elements from the given iterator according to this ordering, in
       * order from greatest to least. If there are fewer than {@code k} elements present, all will be
       * included.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An implementation of {@code Iterable} which throws an exception on all invocations of the {@link
     * #iterator()} method after the first, and whose iterator is always unmodifiable.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/LazyLogger.java

         * depend on Logger not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
         * One thing to *avoid* is a change to make each Logger user use memoizingSupplier directly:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingSortedMap.java

     * override {@code putAll} as well, either providing your own implementation, or delegating to the
     * provided {@code standardPutAll} method.
     *
     * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code
     * default} methods. Instead, it inherits their default implementations. When those implementations
     * invoke methods, they invoke methods on the {@code ForwardingSortedMap}.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

        return Lists.newArrayList(0);
      }
    
      /**
       * The version of this test supplied by {@link MapInterfaceTest} fails for this particular Map
       * implementation, because {@code map.get()} returns a view collection that changes in the course
       * of a call to {@code remove()}. Thus, the expectation doesn't hold that {@code map.remove(x)}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java

    import com.google.common.collect.testing.SampleElements;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map.Entry;
    
    /**
     * A skeleton generator for a {@code ListMultimap} implementation.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringListMultimapGenerator
        implements TestListMultimapGenerator<String, String> {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        // The Unsafe implementation if it's available. Otherwise, the Java implementation.
        Comparator<byte[]> comparator = UnsignedBytes.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
    
        // The Java implementation.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/PatternFilenameFilter.java

       */
      public PatternFilenameFilter(Pattern pattern) {
        this.pattern = Preconditions.checkNotNull(pattern);
      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

       * value of list or collection but not both.
       */
      protected final List<E> getList() {
        return (List<E>) collection;
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The {@code AbstractListTester} implementation overrides {@link
       * AbstractCollectionTester#expectContents(Collection)} to verify that the order of the elements
       * in the list under test matches what is expected.
       */
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

    import java.util.concurrent.locks.LockSupport;
    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An abstract implementation of {@link ListenableFuture}, intended for advanced users only. More
     * common ways to create a {@code ListenableFuture} include instantiating a {@link SettableFuture},
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
Back to top