Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for isSubtype (0.16 sec)

  1. 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();
        return copyOf(naturalOrder, elements);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  2. 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();
        return copyOf(naturalOrder, elements);
    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)
  3. android/guava/src/com/google/common/reflect/Types.java

          void visitClass(Class<?> t) {
            result.set(t.getComponentType());
          }
        }.visit(type);
        return result.get();
      }
    
      /**
       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * @throws IllegalArgumentException if any two keys are equal according to their natural ordering
       */
      public static <K, V> ImmutableSortedMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        // Hack around K not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedSetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<K> naturalOrder = (Ordering<K>) NATURAL_ORDER;
        return copyOfInternal(map, naturalOrder);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) {
        // Hack around E not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedMultisetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable<?>>natural();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        setImplementation(ThreadFactory.class, Dummies.DummyThreadFactory.class);
        setImplementation(Executor.class, Dummies.DummyExecutor.class);
      }
    
      @SuppressWarnings("unchecked") // it's a subtype map
      private static <T> @Nullable Class<? extends T> getImplementation(Class<T> type) {
        return (Class<? extends T>) implementations.get(type);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  7. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        setImplementation(ThreadFactory.class, Dummies.DummyThreadFactory.class);
        setImplementation(Executor.class, Dummies.DummyExecutor.class);
      }
    
      @SuppressWarnings("unchecked") // it's a subtype map
      private static <T> @Nullable Class<? extends T> getImplementation(Class<T> type) {
        return (Class<? extends T>) implementations.get(type);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

     * of bugs and confusion.
     *
     * <h3>About <i>all</i> {@code Immutable-} collections</h3>
     *
     * <p>The remainder of this documentation applies to every public {@code Immutable-} type in this
     * package, whether it is a subtype of {@code ImmutableCollection} or not.
     *
     * <h4>Guarantees</h4>
     *
     * <p>Each makes the following guarantees:
     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
    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)
  9. android/guava/src/com/google/common/collect/ImmutableCollection.java

     * of bugs and confusion.
     *
     * <h3>About <i>all</i> {@code Immutable-} collections</h3>
     *
     * <p>The remainder of this documentation applies to every public {@code Immutable-} type in this
     * package, whether it is a subtype of {@code ImmutableCollection} or not.
     *
     * <h4>Guarantees</h4>
     *
     * <p>Each makes the following guarantees:
     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
    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)
  10. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("application", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateAudioType() {
        MediaType newType = MediaType.createAudioType("yams");
        assertEquals("audio", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateFontType() {
        MediaType newType = MediaType.createFontType("yams");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top