Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for predicate (0.14 sec)

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

          Predicate<E> combinedPredicate = Predicates.and(filtered.predicate, predicate);
          return new FilteredSet<>((Set<E>) filtered.unfiltered, combinedPredicate);
        }
    
        return new FilteredSet<>(checkNotNull(unfiltered), checkNotNull(predicate));
      }
    
      /**
       * Returns the elements of a {@code SortedSet}, {@code unfiltered}, that satisfy a predicate. The
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("pants");
    
        assertFalse(any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CharMatcher.java

      /** Implementation of {@link #forPredicate(Predicate)}. */
      private static final class ForPredicate extends CharMatcher {
    
        private final Predicate<? super Character> predicate;
    
        ForPredicate(Predicate<? super Character> predicate) {
          this.predicate = checkNotNull(predicate);
        }
    
        @Override
        public boolean matches(char c) {
          return predicate.apply(c);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       * {@code predicate}.
       *
       * @since 2.0
       */
      public static <T extends @Nullable Object> int indexOf(
          Iterator<T> iterator, Predicate<? super T> predicate) {
        checkNotNull(predicate, "predicate");
        for (int i = 0; iterator.hasNext(); i++) {
          T current = iterator.next();
          if (predicate.apply(current)) {
            return i;
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

          SetMultimap<K, V> filterFiltered(
              FilteredSetMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) {
        Predicate<Entry<K, V>> predicate =
            Predicates.<Entry<K, V>>and(multimap.entryPredicate(), entryPredicate);
        return new FilteredEntrySetMultimap<>(multimap.unfiltered(), predicate);
      }
    
      static boolean equalsImpl(Multimap<?, ?> multimap, @CheckForNull Object object) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("pants");
    
        assertFalse(any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    			}
    		}
    	}
    }
    
    type predicate struct {
    	f    func(r rune) bool
    	name string
    }
    
    var isSpace = predicate{unicode.IsSpace, "IsSpace"}
    var isDigit = predicate{unicode.IsDigit, "IsDigit"}
    var isUpper = predicate{unicode.IsUpper, "IsUpper"}
    var isValidRune = predicate{
    	func(r rune) bool {
    		return r != utf8.RuneError
    	},
    	"IsValidRune",
    }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Synchronized.java

    import java.util.Spliterator;
    import java.util.function.BiConsumer;
    import java.util.function.BiFunction;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.function.Predicate;
    import java.util.function.UnaryOperator;
    import java.util.stream.Stream;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  9. .bazelrc

    # Note: Lot of the "host_" flags such as "host_cpu" and "host_crosstool_top"
    # flags seem to be actually used to specify the execution platform details. It
    # seems it is this way because these flags are old and predate the distinction
    # between host and execution platform.
    build:cross_compile_base --host_cpu=k8
    build:cross_compile_base --host_crosstool_top=//tensorflow/tools/toolchains/cross_compile/cc:cross_compile_toolchain_suite
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 22:02:31 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * developers are saved from the hassles of encoding and decoding.
     *
     * ### Plus a modern API
     *
     * The URL (JDK1.0) and URI (Java 1.4) classes predate builders and instead use telescoping
     * constructors. For example, there's no API to compose a URI with a custom port without also
     * providing a query and fragment.
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top