Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for wildcard (0.4 sec)

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

       * row and column iteration ordering of the returned table.
       *
       * @throws NullPointerException if {@code table} has a null key
       */
      @SuppressWarnings("unchecked") // TODO(cpovirk): Make constructor accept wildcard types?
      public static <R, C, V> ArrayTable<R, C, V> create(Table<R, C, ? extends @Nullable V> table) {
        return (table instanceof ArrayTable)
            ? new ArrayTable<R, C, V>((ArrayTable<R, C, V>) table)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ArrayTable.java

       * row and column iteration ordering of the returned table.
       *
       * @throws NullPointerException if {@code table} has a null key
       */
      @SuppressWarnings("unchecked") // TODO(cpovirk): Make constructor accept wildcard types?
      public static <R, C, V> ArrayTable<R, C, V> create(Table<R, C, ? extends @Nullable V> table) {
        return (table instanceof ArrayTable)
            ? new ArrayTable<R, C, V>((ArrayTable<R, C, V>) table)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/OptionalTest.java

        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
      }
    
      public void testPresentInstances_wildcards() {
        List<Optional<? extends Number>> optionals =
            ImmutableList.<Optional<? extends Number>>of(Optional.<Double>absent(), Optional.of(2));
        Iterable<Number> onlyPresent = Optional.presentInstances(optionals);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Comparators.java

       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testGetGenericSuperclass_wildcard_boundIsClass() {
        assertEquals(
            TypeToken.of(Object.class),
            TypeToken.of(Types.subtypeOf(Object.class)).getGenericSuperclass());
        assertEquals(
            new TypeToken<Object[]>() {},
            TypeToken.of(Types.subtypeOf(Object[].class)).getGenericSuperclass());
      }
    
      public void testGetGenericSuperclass_wildcard_boundIsInterface() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

         * Iterable<? extends S>}. However, the need for this comes up so rarely
         * that it doesn't justify making everyone else deal with the very ugly
         * wildcard.
         */
        return new LexicographicalOrdering<S>(this);
      }
    
      // Regular instance methods
    
      @Override
      public abstract int compare(@ParametricNullness T left, @ParametricNullness T right);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/OptionalTest.java

        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
      }
    
      public void testPresentInstances_wildcards() {
        List<Optional<? extends Number>> optionals =
            ImmutableList.<Optional<? extends Number>>of(Optional.<Double>absent(), Optional.of(2));
        Iterable<Number> onlyPresent = Optional.presentInstances(optionals);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        numberKeyed = transformEntries(map6, transformer);
        integerKeyed = transformEntries(map8, transformer);
        integerKeyed = transformEntries(map9, transformer);
    
        Map<? extends Number, Double> wildcarded = transformEntries(map0, transformer);
    
        // Can't loosen the key type:
        // objectKeyed = transformEntries(map5, transformer);
        // objectKeyed = transformEntries(map6, transformer);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        numberKeyed = transformEntries(map6, transformer);
        integerKeyed = transformEntries(map8, transformer);
        integerKeyed = transformEntries(map9, transformer);
    
        Map<? extends Number, Double> wildcarded = transformEntries(map0, transformer);
    
        // Can't loosen the key type:
        // objectKeyed = transformEntries(map5, transformer);
        // objectKeyed = transformEntries(map6, transformer);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Equivalence.java

        // Ideally, the returned equivalence would support Iterable<? extends T>. However,
        // the need for this is so rare that it's not worth making callers deal with the ugly wildcard.
        return new PairwiseEquivalence<>(this);
      }
    
      /**
       * Returns a predicate that evaluates to true if and only if the input is equivalent to {@code
       * target} according to this equivalence relation.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top