Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Miller (0.16 sec)

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

       */
      @SuppressWarnings("unchecked") // can cast to <T> because non-Ts are removed
      @GwtIncompatible // Class.isInstance
      public static <T> UnmodifiableIterator<T> filter(Iterator<?> unfiltered, Class<T> desiredType) {
        return (UnmodifiableIterator<T>) filter(unfiltered, instanceOf(desiredType));
      }
    
      /**
       * Returns {@code true} if one or more elements returned by {@code iterator} satisfy the given
       * predicate.
       */
    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)
  2. android/guava/src/com/google/common/collect/Iterables.java

       * <p><b>{@code Stream} equivalent:</b> {@link Stream#filter}.
       */
      public static <T extends @Nullable Object> Iterable<T> filter(
          final Iterable<T> unfiltered, final Predicate<? super T> retainIfTrue) {
        checkNotNull(unfiltered);
        checkNotNull(retainIfTrue);
        return new FluentIterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return Iterators.filter(unfiltered.iterator(), retainIfTrue);
          }
    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)
  3. android/guava/src/com/google/common/collect/RegularImmutableMap.java

          RegularImmutableMap<K, V> empty = (RegularImmutableMap<K, V>) EMPTY;
          return empty;
        } else if (n == 1) {
          // requireNonNull is safe because the first `2*n` elements have been filled in.
          checkEntryNotNull(
              requireNonNull(alternatingKeysAndValues[0]), requireNonNull(alternatingKeysAndValues[1]));
          return new RegularImmutableMap<K, V>(null, alternatingKeysAndValues, 1);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

       * removed from the underlying multiset.
       *
       * <p>The returned multiset isn't threadsafe or serializable, even if {@code unfiltered} is.
       *
       * <p>Many of the filtered multiset's methods, such as {@code size()}, iterate across every
       * element in the underlying multiset and determine which elements satisfy the filter. When a live
    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)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                    // requireNonNull is safe because the first `size` elements have been filled in.
                    requireNonNull(e1);
                    requireNonNull(e2);
                    return comparator.compare(e1.getKey(), e2.getKey());
                  });
              // requireNonNull is safe because the first `size` elements have been filled in.
              Entry<K, V> firstEntry = requireNonNull(entryArray[0]);
    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)
  6. android/guava/src/com/google/common/base/Preconditions.java

     *
     * <p>If the precondition is not met, the {@code Preconditions} method throws an unchecked exception
     * of a specified type, which helps the method in which the exception was thrown communicate that
     * its caller has made a mistake. This allows constructs such as
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

      }
    
      private static Type[] toArray(Collection<Type> types) {
        return types.toArray(new Type[0]);
      }
    
      private static Iterable<Type> filterUpperBounds(Iterable<Type> bounds) {
        return Iterables.filter(bounds, Predicates.not(Predicates.<Type>equalTo(Object.class)));
      }
    
      private static void disallowPrimitiveType(Type[] types, String usedAs) {
        for (Type type : types) {
          if (type instanceof Class) {
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

                Serialization.getFieldSetter(ImmutableSetMultimap.class, "emptySet");
      }
    
      @GwtIncompatible // java.io.ObjectInputStream
      @J2ktIncompatible
      // Serialization type safety is at the caller's mercy.
      @SuppressWarnings("unchecked")
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
    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)
  9. android/guava/src/com/google/common/collect/Sets.java

       * java.util.stream.Stream#filter}. This method is not being deprecated, but we gently encourage
       * you to migrate to streams.
       */
      // TODO(kevinb): how to omit that last sentence when building GWT javadoc?
      public static <E extends @Nullable Object> Set<E> filter(
          Set<E> unfiltered, Predicate<? super E> predicate) {
        if (unfiltered instanceof SortedSet) {
          return filter((SortedSet<E>) unfiltered, predicate);
    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)
  10. README.md

        otherwise. Do not persist these and assume they can be read by a future
        version of the library.
    
    5.  Our classes are not designed to protect against a malicious caller. You
        should not use them for communication between trusted and untrusted code.
    
    6.  For the mainline flavor, we test the libraries using OpenJDK 8, 11, and 17
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top