Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 250 for cpovirk (0.05 seconds)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

        stream.defaultReadObject();
        int size = stream.readInt();
        init(16); // resist hostile attempts to allocate gratuitous heap
        Serialization.populateMap(this, stream, size);
      }
    
      // TODO(cpovirk): Should we have a serialVersionUID here?
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:46:34 GMT 2025
    - 37.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

       *
       * @since 11.0
       */
      public static <E> ImmutableMultiset<E> copyHighestCountFirst(Multiset<E> multiset) {
        @SuppressWarnings("unchecked") // generics+arrays
        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
        Arrays.sort(entries, DecreasingCount.INSTANCE);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Multisets.java

       *
       * @since 11.0
       */
      public static <E> ImmutableMultiset<E> copyHighestCountFirst(Multiset<E> multiset) {
        @SuppressWarnings("unchecked") // generics+arrays
        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
        Arrays.sort(entries, DecreasingCount.INSTANCE);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

            current.pred = null;
            current.succ = null;
    
            current = next;
          }
          successor(header, header);
          rootReference.clear();
        } else {
          // TODO(cpovirk): Perhaps we can optimize in this case, too?
          Iterators.clear(entryIterator());
        }
      }
    
      private Entry<E> wrapEntry(AvlNode<E> baseEntry) {
        return new Multisets.AbstractEntry<E>() {
          @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(logHandler.getStoredLogRecords().isEmpty()).isTrue();
      }
    
      private void checkLogged(Throwable t) {
        assertThat(popLoggedThrowable()).isSameInstanceAs(t);
      }
    
      /*
       * TODO(cpovirk): Can we replace makeLocalCache with a call to builder.build()? Some tests may
       * need access to LocalCache APIs, but maybe we can at least make makeLocalCache use
       * builder.build() and then cast?
       */
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 117.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(logHandler.getStoredLogRecords().isEmpty()).isTrue();
      }
    
      private void checkLogged(Throwable t) {
        assertThat(popLoggedThrowable()).isSameInstanceAs(t);
      }
    
      /*
       * TODO(cpovirk): Can we replace makeLocalCache with a call to builder.build()? Some tests may
       * need access to LocalCache APIs, but maybe we can at least make makeLocalCache use
       * builder.build() and then cast?
       */
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 115.9K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      private static void shouldPass(Object instance) {
        shouldPass(instance, Visibility.PACKAGE);
        shouldPass(instance, Visibility.PROTECTED);
        shouldPass(instance, Visibility.PUBLIC);
      }
    
      // TODO(cpovirk): eliminate surprising Object/Class overloading of shouldFail
    
      private static void shouldFail(Object instance, Visibility visibility) {
        try {
          new NullPointerTester().testInstanceMethods(instance, visibility);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 47.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/TreeMultiset.java

            current.pred = null;
            current.succ = null;
    
            current = next;
          }
          successor(header, header);
          rootReference.clear();
        } else {
          // TODO(cpovirk): Perhaps we can optimize in this case, too?
          Iterators.clear(entryIterator());
        }
      }
    
      private Entry<E> wrapEntry(AvlNode<E> baseEntry) {
        return new Multisets.AbstractEntry<E>() {
          @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 34.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit tests for {@code Ordering}.
     *
     * @author Jesse Wilson
     */
    @GwtCompatible
    @NullMarked
    public class OrderingTest extends TestCase {
      // TODO(cpovirk): some of these are inexplicably slow (20-30s) under GWT
    
      private final Ordering<Number> numberOrdering = new NumberOrdering();
    
      public void testAllEqual() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit tests for {@code Ordering}.
     *
     * @author Jesse Wilson
     */
    @GwtCompatible
    @NullMarked
    public class OrderingTest extends TestCase {
      // TODO(cpovirk): some of these are inexplicably slow (20-30s) under GWT
    
      private final Ordering<Number> numberOrdering = new NumberOrdering();
    
      public void testAllEqual() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
Back to Top