Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for predict (0.39 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
    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)
  2. android/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);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Map;
    import java.util.Objects;
    import java.util.Properties;
    import java.util.Set;
    import java.util.function.Predicate;
    
    import org.apache.maven.RepositoryUtils;
    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.artifact.ArtifactUtils;
    import org.apache.maven.artifact.DependencyResolutionRequiredException;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testAny() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(Iterators.any(list.iterator(), predicate));
      }
    
      public void testAll() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /** The 0-ary cartesian product is a single empty list. */
      public void testCartesianProduct_zeroary() {
        assertThat(Sets.cartesianProduct()).containsExactly(list());
      }
    
      /** A unary cartesian product is one list of size 1 for each element in the input set. */
      public void testCartesianProduct_unary() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  6. 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;
          }
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. 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;
          }
        }
    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)
  8. android/guava/src/com/google/common/collect/Multimaps.java

          Multimap<K, V> filterFiltered(
              FilteredMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) {
        Predicate<Entry<K, V>> predicate =
            Predicates.<Entry<K, V>>and(multimap.entryPredicate(), entryPredicate);
        return new FilteredEntryMultimap<>(multimap.unfiltered(), predicate);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  9. 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);
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testAny() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(Iterators.any(list.iterator(), predicate));
      }
    
      public void testAll() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
Back to top