Uses of Interface
java.util.function.Predicate
Packages that use Predicate
Package
Description
Provides a simple high-level Http server API, which can be used to build
   embedded HTTP servers.
Provides for system input and output through data streams,
 serialization and the file system.
Contains the collections framework, some internationalization support classes,
 a service loader, properties, random number generation, string parsing
 and scanning classes, base64 encoding and decoding, a bit array, and
 several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Functional interfaces provide target types for lambda expressions
 and method references.
Classes for matching character sequences against patterns specified
 by regular expressions.
Classes to support functional-style operations on streams of elements, such
 as map-reduce transformations on collections.
This package contains classes for consuming Flight Recorder data.
- 
Uses of Predicate in com.sun.net.httpserverMethods in com.sun.net.httpserver with parameters of type PredicateModifier and TypeMethodDescriptionstatic HttpHandlerHttpHandlers.handleOrElse(Predicate<Request> handlerTest, HttpHandler handler, HttpHandler fallbackHandler) Complements a conditionalHttpHandlerwith another handler.
- 
Uses of Predicate in java.ioModifier and TypeMethodDescriptionstatic ObjectInputFilterObjectInputFilter.allowFilter(Predicate<Class<?>> predicate, ObjectInputFilter.Status otherStatus) Returns a filter that returnsStatus.ALLOWEDif the predicate on the class istrue.static ObjectInputFilterObjectInputFilter.rejectFilter(Predicate<Class<?>> predicate, ObjectInputFilter.Status otherStatus) Returns a filter that returnsStatus.REJECTEDif the predicate on the class istrue.
- 
Uses of Predicate in java.utilModifier and TypeMethodDescriptionIf a value is present, and the value matches the given predicate, returns anOptionaldescribing the value, otherwise returns an emptyOptional.booleanbooleandefault booleanRemoves all of the elements of this collection that satisfy the given predicate.booleanboolean
- 
Uses of Predicate in java.util.concurrentMethods in java.util.concurrent with parameters of type PredicateModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanConstructors in java.util.concurrent with parameters of type PredicateModifierConstructorDescriptionForkJoinPool(int parallelism, ForkJoinPool.ForkJoinWorkerThreadFactory factory, Thread.UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, Predicate<? super ForkJoinPool> saturate, long keepAliveTime, TimeUnit unit) Creates aForkJoinPoolwith the given parameters.
- 
Uses of Predicate in java.util.functionMethods in java.util.function that return PredicateModifier and TypeMethodDescriptionReturns a composed predicate that represents a short-circuiting logical AND of this predicate and another.static <T> Predicate<T> Returns a predicate that tests if two arguments are equal according toObjects.equals(Object, Object).Predicate.negate()Returns a predicate that represents the logical negation of this predicate.static <T> Predicate<T> Returns a predicate that is the negation of the supplied predicate.Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.Methods in java.util.function with parameters of type PredicateModifier and TypeMethodDescriptionReturns a composed predicate that represents a short-circuiting logical AND of this predicate and another.static <T> Predicate<T> Returns a predicate that is the negation of the supplied predicate.Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
- 
Uses of Predicate in java.util.regexMethods in java.util.regex that return PredicateModifier and TypeMethodDescriptionPattern.asMatchPredicate()Creates a predicate that tests if this pattern matches a given input string.Pattern.asPredicate()Creates a predicate that tests if this pattern is found in a given input string.
- 
Uses of Predicate in java.util.streamMethods in java.util.stream with parameters of type PredicateModifier and TypeMethodDescriptionbooleanReturns whether all elements of this stream match the provided predicate.booleanReturns whether any elements of this stream match the provided predicate.Returns, if this stream is ordered, a stream consisting of the remaining elements of this stream after dropping the longest prefix of elements that match the given predicate.Returns a stream consisting of the elements of this stream that match the given predicate.static <T,A, R> Collector <T, ?, R> Adapts aCollectorto one accepting elements of the same typeTby applying the predicate to each input element and only accumulating if the predicate returnstrue.static <T> Stream<T> Stream.iterate(T seed, Predicate<? super T> hasNext, UnaryOperator<T> next) Returns a sequential orderedStreamproduced by iterative application of the givennextfunction to an initial element, conditioned on satisfying the givenhasNextpredicate.booleanReturns whether no elements of this stream match the provided predicate.Collectors.partitioningBy(Predicate<? super T> predicate) Returns aCollectorwhich partitions the input elements according to aPredicate, and organizes them into aMap<Boolean, List<T>>.Collectors.partitioningBy(Predicate<? super T> predicate, Collector<? super T, A, D> downstream) Returns aCollectorwhich partitions the input elements according to aPredicate, reduces the values in each partition according to anotherCollector, and organizes them into aMap<Boolean, D>whose values are the result of the downstream reduction.Returns, if this stream is ordered, a stream consisting of the longest prefix of elements taken from this stream that match the given predicate.
- 
Uses of Predicate in jdk.jfr.consumerMethods in jdk.jfr.consumer with parameters of type PredicateModifier and TypeMethodDescriptionvoidRecordingFile.write(Path destination, Predicate<RecordedEvent> filter) Filter out events and write them to a new file.