Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 215 for extends (0.17 sec)

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

       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterable<? extends T> iterable, Class<@NonNull T> type) {
        return toArray(iterable, ObjectArrays.newArray(type, 0));
      }
    
      static <T extends @Nullable Object> T[] toArray(Iterable<? extends T> iterable, T[] array) {
        Collection<? extends T> collection = castOrCopyToCollection(iterable);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       *
       * @since 3.0
       */
      public static <E extends @Nullable Object> SetView<E> symmetricDifference(
          final Set<? extends E> set1, final Set<? extends E> set2) {
        checkNotNull(set1, "set1");
        checkNotNull(set2, "set2");
    
        return new SetView<E>() {
          @Override
          public UnmodifiableIterator<E> iterator() {
            final Iterator<? extends E> itr1 = set1.iterator();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

        return checkNotNull(multiset);
      }
    
      static class UnmodifiableMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
          implements Serializable {
        final Multiset<? extends E> delegate;
    
        UnmodifiableMultiset(Multiset<? extends E> delegate) {
          this.delegate = delegate;
        }
    
        @SuppressWarnings("unchecked")
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        return new Builder<K, V>().putAll(entries).build();
      }
    
      /** Creates an ImmutableSetMultimap from an asMap.entrySet. */
      static <K, V> ImmutableSetMultimap<K, V> fromMapEntries(
          Collection<? extends Map.Entry<? extends K, ? extends Collection<? extends V>>> mapEntries,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableTable.java

          return copyOf(table.cellSet());
        }
      }
    
      static <R, C, V> ImmutableTable<R, C, V> copyOf(
          Iterable<? extends Cell<? extends R, ? extends C, ? extends V>> cells) {
        ImmutableTable.Builder<R, C, V> builder = ImmutableTable.builder();
        for (Cell<? extends R, ? extends C, ? extends V> cell : cells) {
          builder.put(cell);
        }
        return builder.build();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          return split == null ? null : new GeneralSpliteratorOfObject<>(split);
        }
      }
    
      private static final class GeneralSpliteratorOfPrimitive<
              E extends @Nullable Object, C, S extends Spliterator.OfPrimitive<E, C, S>>
          extends GeneralSpliterator<E> {
        final OfPrimitive<E, C, S> spliteratorOfPrimitive;
        final Function<Consumer<? super E>, C> consumerizer;
    
        GeneralSpliteratorOfPrimitive(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      @Beta // TODO: b/288085449 - Remove.
      public static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap(
              Comparator<? super K> comparator,
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction) {
        return CollectCollectors.toImmutableSortedMap(comparator, keyFunction, valueFunction);
    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)
  8. android/guava/src/com/google/common/collect/Comparators.java

       * always true when the iterable has fewer than two elements.
       */
      public static <T extends @Nullable Object> boolean isInOrder(
          Iterable<? extends T> iterable, Comparator<T> comparator) {
        checkNotNull(comparator);
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
    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)
  9. android/guava/src/com/google/common/collect/ImmutableBiMap.java

      @Beta // TODO: b/288085449 - Remove.
      public static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableBiMap<K, V>> toImmutableBiMap(
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction) {
        return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

         * operation O(1).
         */
    
        @CheckForNull private Iterator<? extends Iterator<? extends T>> topMetaIterator;
    
        // Only becomes nonnull if we encounter nested concatenations.
        @CheckForNull private Deque<Iterator<? extends Iterator<? extends T>>> metaIterators;
    
        ConcatenatedIterator(Iterator<? extends Iterator<? extends T>> metaIterator) {
          iterator = emptyIterator();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top