Uses of Interface
com.gengoai.function.SerializablePredicate
-
Packages that use SerializablePredicate Package Description com.gengoai.collection Contains collections useful for Data Science and continence methods for creating, wrapping, writing, and reading of existing collection classes.com.gengoai.function Checked and Serializable versions of Java 8's functional elements.com.gengoai.parsing com.gengoai.reflection Creation and manipulation of objects via reflection.com.gengoai.stream A unified stream interface that can work across Java and Spark streams.com.gengoai.stream.local com.gengoai.stream.spark com.gengoai.string Functions, predicates, and utilities to create, format, parse, and manipulate strings. -
-
Uses of SerializablePredicate in com.gengoai.collection
Methods in com.gengoai.collection with parameters of type SerializablePredicate Modifier and Type Method Description static <E> Iterable<E>
Iterables. filter(@NonNull Iterable<? extends E> iterable, @NonNull SerializablePredicate<? super E> predicate)
Filters elements from the given iterable when the given filter predicate evaluates to falsestatic <E> Iterator<E>
Iterators. filter(Iterator<? extends E> iterator, SerializablePredicate<? super E> filter)
Filters elements from the given iterator when the given filter predicate evaluates to false -
Uses of SerializablePredicate in com.gengoai.function
Methods in com.gengoai.function that return SerializablePredicate Modifier and Type Method Description default SerializablePredicate<T>
SerializablePredicate. and(SerializablePredicate<? super T> other)
default SerializablePredicate<T>
SerializablePredicate. and(Predicate<? super T> other)
static <T> SerializablePredicate<T>
Serialized. and(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
And serializable predicate.static <T> SerializablePredicate<T>
SerializablePredicate. instanceOf(Class<?> clazz)
static <T> SerializablePredicate<T>
Predicates. isIn(Collection<T> collection)
static <T> SerializablePredicate<T>
Predicates. isIn(Set<T> set)
static <T> SerializablePredicate<T>
Predicates. isIn(T... array)
default SerializablePredicate<T>
SerializablePredicate. negate()
static <T> SerializablePredicate<T>
Serialized. negate(SerializablePredicate<? super T> p1)
Negate serializable predicate.default SerializablePredicate<T>
SerializablePredicate. or(SerializablePredicate<? super T> other)
default SerializablePredicate<T>
SerializablePredicate. or(Predicate<? super T> other)
static <T> SerializablePredicate<T>
Serialized. or(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
Or serializable predicate.static <T> SerializablePredicate<T>
Unchecked. predicate(CheckedPredicate<T> checked)
Generates a version of Predicate that will capture exceptions and rethrow them as runtime exceptionsMethods in com.gengoai.function with parameters of type SerializablePredicate Modifier and Type Method Description default SerializablePredicate<T>
SerializablePredicate. and(SerializablePredicate<? super T> other)
static <T> SerializablePredicate<T>
Serialized. and(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
And serializable predicate.static <T> SerializablePredicate<T>
Serialized. negate(SerializablePredicate<? super T> p1)
Negate serializable predicate.default SerializablePredicate<T>
SerializablePredicate. or(SerializablePredicate<? super T> other)
static <T> SerializablePredicate<T>
Serialized. or(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
Or serializable predicate.static <T> Predicate<T>
Serialized. predicate(SerializablePredicate<T> serialized)
Generates a serialized version of Predicatestatic <I,O>
Funcs.When<I,O>Funcs. when(SerializablePredicate<? super I> predicate, SerializableFunction<? super I,? extends O> trueAction)
When when.static <I,O>
Funcs.When<I,O>Funcs. when(SerializablePredicate<? super I> predicate, O trueValue)
When when.<T,R>
voidSwitch.SwitchBuilder. when(SerializablePredicate<? super T> predicate, @NonNull SerializableFunction<T,R> mapper, @NonNull SerializableFunction<R,V> function)
When.<T> void
Switch.SwitchBuilder. when(SerializablePredicate<? super T> predicate, @NonNull SerializableFunction<T,V> function)
When. -
Uses of SerializablePredicate in com.gengoai.parsing
Methods in com.gengoai.parsing with parameters of type SerializablePredicate Modifier and Type Method Description <E extends Expression>
GrammarGrammar. postfix(Tag tag, PostfixHandler handler, int precedence, SerializablePredicate<E> validator)
Registers aPostfixHandler
with the given precedence for the givenTag
<E extends Expression>
GrammarGrammar. prefix(Tag tag, PrefixHandler handler, SerializablePredicate<E> validator)
Registers aPrefixHandler
for the givenTag
-
Uses of SerializablePredicate in com.gengoai.reflection
Methods in com.gengoai.reflection with parameters of type SerializablePredicate Modifier and Type Method Description List<RConstructor>
Reflect. getConstructorsWhere(@NonNull SerializablePredicate<? super RConstructor> predicate)
Gets the constructors for the class matching the given predicateList<RField>
Reflect. getFieldsWhere(@NonNull SerializablePredicate<RField> predicate)
Gets all fields that match the given predicateList<RMethod>
Reflect. getMethodsWhere(@NonNull SerializablePredicate<? super RMethod> predicate)
Gets the methods for the class matching the given predicateList<RMethod>
Reflect. getMethodsWhere(String name, @NonNull SerializablePredicate<? super RMethod> predicate)
Gets the methods with the given name for the class matching the given predicate -
Uses of SerializablePredicate in com.gengoai.stream
Methods in com.gengoai.stream with parameters of type SerializablePredicate Modifier and Type Method Description MStream<T>
MStream. filter(SerializablePredicate<? super T> predicate)
Filters the stream.MPairStream<T,U>
MPairStream. filterByKey(SerializablePredicate<T> predicate)
Filters the stream by key.MPairStream<T,U>
MPairStream. filterByValue(SerializablePredicate<U> predicate)
Filters the stream by value.default void
MAccumulator. report(SerializablePredicate<? super OUT> when, Consumer<OUT> message)
Reports the given message when the given predicate evaluates to true. -
Uses of SerializablePredicate in com.gengoai.stream.local
Methods in com.gengoai.stream.local with parameters of type SerializablePredicate Modifier and Type Method Description MPairStream<K,V>
AbstractLocalMPairStream. filterByKey(@NonNull SerializablePredicate<K> predicate)
MPairStream<K,V>
AbstractLocalMPairStream. filterByValue(@NonNull SerializablePredicate<V> predicate)
void
LocalMAccumulator. report(SerializablePredicate<? super OUT> when, Consumer<OUT> message)
-
Uses of SerializablePredicate in com.gengoai.stream.spark
Methods in com.gengoai.stream.spark with parameters of type SerializablePredicate Modifier and Type Method Description SparkStream<T>
SparkStream. filter(SerializablePredicate<? super T> predicate)
MPairStream<T,U>
SparkPairStream. filterByKey(SerializablePredicate<T> predicate)
MPairStream<T,U>
SparkPairStream. filterByValue(SerializablePredicate<U> predicate)
-
Uses of SerializablePredicate in com.gengoai.string
Subinterfaces of SerializablePredicate in com.gengoai.string Modifier and Type Interface Description interface
CharMatcher
ACharMatcher
is aSerializablePredicate
forCharacter
s testing if characters match a specific pattern.interface
StringMatcher
AStringMatcher
is aSerializablePredicate
forCharSequence
s testing if CharSequences match a specific pattern.Methods in com.gengoai.string that return SerializablePredicate Modifier and Type Method Description static SerializablePredicate<CharSequence>
Re. match(@NonNull CharSequence... pattern)
Creates aSerializablePredicate
to match the given Pattern by calling find on the resulting matcher.static SerializablePredicate<CharSequence>
Re. match(@NonNull Pattern pattern)
Creates aSerializablePredicate
to match the given Pattern by calling find on the resulting matcher.static SerializablePredicate<CharSequence>
Re. matchAll(@NonNull CharSequence... pattern)
Creates aSerializablePredicate
to match the given Pattern by calling matches on the resulting matcher.static SerializablePredicate<CharSequence>
Re. matchAll(@NonNull Pattern pattern)
Creates aSerializablePredicate
to match the given Pattern by calling matches on the resulting matcher.Methods in com.gengoai.string with parameters of type SerializablePredicate Modifier and Type Method Description default CharMatcher
CharMatcher. and(@NonNull SerializablePredicate<? super Character> other)
default StringMatcher
StringMatcher. and(SerializablePredicate<? super CharSequence> other)
default CharMatcher
CharMatcher. or(@NonNull SerializablePredicate<? super Character> other)
default StringMatcher
StringMatcher. or(SerializablePredicate<? super CharSequence> other)
-