Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for around (0.22 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.NavigableSet;
    import java.util.SortedSet;
    import java.util.TreeSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A wrapper around {@code TreeSet} that aggressively checks to see if elements are mutually
     * comparable. This implementation passes the navigable set test suites.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        ImmutableTypeToInstanceMap<Iterable<?>[]> map =
            ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build();
        assertEquals(1, map.size());
        // Redundant cast works around a javac bug.
        assertThat((Iterable<?>[]) map.getInstance(type)).asList().containsExactly(array[0]);
      }
    
      public void testWildcardType() {
        TypeToken<ImmutableList<?>> type = new TypeToken<ImmutableList<?>>() {};
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

    /**
     * GWT emulation of {@link com.google.common.collect.ImmutableMap}. For non sorted maps, it is a
     * thin wrapper around {@link java.util.Collections#emptyMap()}, {@link
     * Collections#singletonMap(Object, Object)} and {@link java.util.LinkedHashMap} for empty,
     * singleton and regular maps respectively. For sorted maps, it's a thin wrapper around {@link
     * java.util.TreeMap}.
     *
     * @see ImmutableSortedMap
     * @author Hayward Chan
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) {
        // Hack around E not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedSetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable<?>>natural();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TableCollectors.java

        /*
         * No mutable Table exactly matches the insertion order behavior of ImmutableTable.Builder, but
         * the Builder can't efficiently support merging of duplicate values.  Getting around this
         * requires some work.
         */
    
        return Collector.of(
            ImmutableTableCollectorState<R, C, V>::new,
            (state, input) ->
                state.put(
                    rowFunction.apply(input),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.TreeMap;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A wrapper around {@code TreeMap} that aggressively checks to see if keys are mutually comparable.
     * This implementation passes the navigable map test suites.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.TreeMap;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A wrapper around {@code TreeMap} that aggressively checks to see if keys are mutually comparable.
     * This implementation passes the navigable map test suites.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        public boolean equals(Object o) {
          return value.equals(o);
        }
    
        public int hashCode() {
          return value.hashCode();
        }
      }
    
      /**
       * LocalManualCache is a wrapper around LocalCache for a cache without loading.
       *
       * @param <K> the base key type
       * @param <V> the base value type
       */
      public static class LocalManualCache<K, V> extends AbstractCache<K, V> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_collection_empty() {
        // "<String>" is required to work around a javac 1.5 bug.
        Collection<String> c = MinimalCollection.<String>of();
        Set<String> set = copyOf(c);
        assertEquals(Collections.<String>emptySet(), set);
        assertSame(this.<String>of(), set);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_collection_empty() {
        // "<String>" is required to work around a javac 1.5 bug.
        Collection<String> c = MinimalCollection.<String>of();
        Set<String> set = copyOf(c);
        assertEquals(Collections.<String>emptySet(), set);
        assertSame(this.<String>of(), set);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top