Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for predict (0.18 sec)

  1. guava/src/com/google/common/base/Predicate.java

    /**
     * Legacy version of {@link java.util.function.Predicate java.util.function.Predicate}. Determines a
     * true or false value for a given input.
     *
     * <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
     * be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
     * {@code com.google.common.base.Predicate} is expected, use the method reference {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Predicate.java

       *       Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) ==
       *       predicate.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this predicate does not accept null
       *     arguments
       */
      boolean apply(@ParametricNullness T input);
    
      /**
       * Indicates whether another object is equal to this predicate.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      private static void assertEvalsToTrue(Predicate<? super @Nullable Integer> predicate) {
        assertTrue(predicate.apply(0));
        assertTrue(predicate.apply(1));
        assertTrue(predicate.apply(null));
      }
    
      private static void assertEvalsToFalse(Predicate<? super @Nullable Integer> predicate) {
        assertFalse(predicate.apply(0));
        assertFalse(predicate.apply(1));
        assertFalse(predicate.apply(null));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

        final Collection<E> unfiltered;
        final Predicate<? super E> predicate;
    
        FilteredCollection(Collection<E> unfiltered, Predicate<? super E> predicate) {
          this.unfiltered = unfiltered;
          this.predicate = predicate;
        }
    
        FilteredCollection<E> createCombined(Predicate<? super E> newPredicate) {
          return new FilteredCollection<>(unfiltered, Predicates.and(predicate, newPredicate));
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       * iterable} is empty, {@code true} is returned.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#allMatch}.
       */
      public static <T extends @Nullable Object> boolean all(
          Iterable<T> iterable, Predicate<? super T> predicate) {
        return Iterators.all(iterable.iterator(), predicate);
      }
    
      /**
       * Returns the first element in {@code iterable} that satisfies the given predicate; use this
    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)
  6. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      static final Predicate<String> FILTER_KEYS =
          new Predicate<String>() {
            @Override
            public boolean apply(@Nullable String string) {
              return !"banana".equals(string) && !"eggplant".equals(string);
            }
          };
    
      static final Predicate<String> FILTER_VALUES =
          new Predicate<String>() {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SetsFilterNavigableSetTest.java

        return Sets.newTreeSet(contents);
      }
    
      @Override
      NavigableSet<Integer> filter(
          NavigableSet<Integer> elements, Predicate<? super Integer> predicate) {
        return Sets.filter(elements, predicate);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 16 21:55:55 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      public void testRemoveIf_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeIf(Predicate) should return false or throw " + "UnsupportedOperationException",
              collection.removeIf(
                  x -> {
                    throw new AssertionError("predicate should never be called");
                  }));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multisets.java

      }
    
      private static final class FilteredMultiset<E extends @Nullable Object> extends ViewMultiset<E> {
        final Multiset<E> unfiltered;
        final Predicate<? super E> predicate;
    
        FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate) {
          this.unfiltered = checkNotNull(unfiltered);
          this.predicate = checkNotNull(predicate);
        }
    
        @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)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

        throw new UnsupportedOperationException();
      }
    
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean removeIf(Predicate<? super E> predicate) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean retainAll(Collection<?> elementsToKeep) {
        throw new UnsupportedOperationException();
      }
    
      public final void clear() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top