Package | Description |
---|---|
propel.core.functional.predicates | |
propel.core.threading.primitives | |
propel.core.utils |
Modifier and Type | Method and Description |
---|---|
static Predicates.Predicate1<java.io.File> |
Files.canExecute()
Returns true if the file can be executed
|
static Predicates.Predicate1<java.io.File> |
Files.canRead()
Returns true if the file can be read
|
static Predicates.Predicate1<java.io.File> |
Files.canWrite()
Returns true if the file can be written to
|
static Predicates.Predicate1<java.lang.reflect.Constructor<?>> |
Reflection.constructorEqual(java.lang.reflect.Constructor<?> _constructor)
Predicate evaluating to true if given constructor equals the processed value
|
static <T> Predicates.Predicate1<T> |
Objects.containedBy(java.lang.Iterable _elements)
Predicate returning true if an element is contained in the function argument (Iterable)
|
static <T> Predicates.Predicate1<T> |
Objects.containedIn(T[] _elements)
Predicate returning true if an element is contained in the function argument (Array)
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.contains(java.lang.Object _item)
Predicate returning true when the function argument contains an item
|
static Predicates.Predicate1<java.lang.String> |
Strings.contains(java.lang.String _part)
Predicate returning true when the function argument contains some string
|
static <T> Predicates.Predicate1<T> |
Objects.contains(java.lang.String _part)
Predicate returning true when the function argument's toString() contains some string
|
static Predicates.Predicate1<java.lang.String> |
Strings.contains(java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument contains some string
|
static <T> Predicates.Predicate1<T> |
Objects.contains(java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() contains some string
|
static <T> Predicates.Predicate1<T> |
Arrays.contains(T[] _values)
Predicate returning true when the function argument contains an item
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.containsAll(java.lang.Iterable _items)
Predicate returning true when the function argument contains all items
|
static <T> Predicates.Predicate1<T[]> |
Arrays.containsAll(T[] _values)
Predicate returning true when the function argument contains all items
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.containsAny(java.lang.Iterable _items)
Predicate returning true when the function argument contains any of the given items
|
static <T> Predicates.Predicate1<T[]> |
Arrays.containsAny(T[] _values)
Predicate returning true when the function argument contains any of the given items
|
static <T> Predicates.Predicate1<T[]> |
Arrays.deepEqual(T[] _values)
Predicate returning true when the function argument is deeply equal to another array
|
static Predicates.Predicate1<java.lang.String> |
Strings.endsWith(java.lang.String _suffix)
Predicate returning true when the function argument ends with a suffix
|
static <T> Predicates.Predicate1<T> |
Objects.endsWith(java.lang.String _suffix)
Predicate returning true when the function argument's toString() ends with a suffix
|
static Predicates.Predicate1<java.lang.String> |
Strings.endsWith(java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument ends with a suffix
|
static <T> Predicates.Predicate1<T> |
Objects.endsWith(java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() ends with a suffix
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.equal(java.lang.Iterable _value)
Predicate returning true when the function argument is equal to another array
|
static <T> Predicates.Predicate1<T> |
Objects.equal(java.lang.Object _value)
Predicate returning true when the function argument is equal to a value (nulls are allowed)
|
static <T> Predicates.Predicate1<T[]> |
Arrays.equal(T[] _value)
Predicate returning true when the function argument is equal to another array
|
static Predicates.Predicate1<java.io.File> |
Files.exists()
Returns true if the file exists
|
static Predicates.Predicate1<java.lang.reflect.Field> |
Reflection.fieldEqual(java.lang.reflect.Field _field)
Predicate evaluating to true if given field equals the processed value
|
static Predicates.Predicate1<java.lang.reflect.Field> |
Reflection.fieldNameEquals(java.lang.String _name)
Predicate evaluating to true if a field name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Field> |
Reflection.fieldNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a field name matches the given name
|
static <T extends java.lang.Comparable<T>> |
Objects.greaterThan(T _value)
Predicate returning true when the function argument is greater than a value
|
static <T extends java.lang.Comparable<T>> |
Objects.greaterThanOrEqual(T _value)
Predicate returning true when the function argument is greater than or equal to a value
|
static <T> Predicates.Predicate1<T> |
Reflection.instanceOf(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the class specified
|
static <T> Predicates.Predicate1<T> |
Objects.instanceOf(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the class specified
|
static Predicates.Predicate1<java.io.File> |
Files.isDirectory()
Returns true if the file is a directory
|
static Predicates.Predicate1<java.lang.String> |
Strings.isEmpty()
Predicate returning true when the function argument is empty
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.isEmpty()
Predicate returning true when the function argument is empty
|
static <T> Predicates.Predicate1<T[]> |
Arrays.isEmpty()
Predicate returning true when the function argument is empty
|
static Predicates.Predicate1<java.lang.String> |
Strings.isEqual(java.lang.String _other)
Predicate returning true when the function argument is equal to some string
|
static <T> Predicates.Predicate1<T> |
Objects.isEqual(java.lang.String _other)
Predicate returning true when the function argument's toString() is equal to some string
|
static Predicates.Predicate1<java.lang.String> |
Strings.isEqual(java.lang.String _other,
StringComparison _comparison)
Predicate returning true when the function argument is equal to some string
|
static <T> Predicates.Predicate1<T> |
Objects.isEqual(java.lang.String _other,
StringComparison _comparison)
Predicate returning true when the function argument's toString() is equal to some string
|
static <T> Predicates.Predicate1<T> |
Reflection.isExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is a subclass of the class specified
|
static <T> Predicates.Predicate1<T> |
Objects.isExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is a subclass of the class specified
|
static Predicates.Predicate1<java.io.File> |
Files.isFile()
Returns true if the file is not a directory
|
static Predicates.Predicate1<java.lang.reflect.Method> |
Reflection.isGetter()
Predicate evaluating to true if given method is getter
|
static Predicates.Predicate1<java.io.File> |
Files.isHidden()
Returns true if the file is a hidden file
|
static <T> Predicates.Predicate1<T> |
Reflection.isImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the interface specified
|
static <T> Predicates.Predicate1<T> |
Objects.isImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the interface specified
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.isNotEmpty()
Predicate returning true when the function argument is not empty
|
static <T> Predicates.Predicate1<T[]> |
Arrays.isNotEmpty()
Predicate returning true when the function argument is not empty
|
static <T> Predicates.Predicate1<T> |
Reflection.isNotExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not a subclass of the class specified
|
static <T> Predicates.Predicate1<T> |
Objects.isNotExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not a subclass of the class specified
|
static <T> Predicates.Predicate1<T> |
Reflection.isNotImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the interface specified
|
static <T> Predicates.Predicate1<T> |
Objects.isNotImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the interface specified
|
static <T> Predicates.Predicate1<T> |
Objects.isNotNull()
Predicate returning true when the function argument is not null
|
static Predicates.Predicate1<java.lang.String> |
Strings.isNotNullOrBlank()
Predicate returning true when the function argument is not null, empty or blank.
|
static Predicates.Predicate1<java.lang.String> |
Strings.isNotNullOrEmpty()
Predicate returning true when the function argument is not null or empty
|
static <T> Predicates.Predicate1<T> |
Objects.isNull()
Predicate returning true when the function argument is null
|
static Predicates.Predicate1<java.lang.String> |
Strings.isNullOrBlank()
Predicate returning true when the function argument is null, empty or blank.
|
static Predicates.Predicate1<java.lang.String> |
Strings.isNullOrEmpty()
Predicate returning true when the function argument is null or empty
|
static Predicates.Predicate1<java.lang.reflect.Method> |
Reflection.isSetter()
Predicate evaluating to true if given method is setter
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthEquals(int _len)
Predicate returning true when the function argument has a specified length
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthEquals(int _len)
Predicate returning true when the length equals to specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthEquals(int _len)
Predicate returning true when the length equals to specified value
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthGreaterThan(int _len)
Predicate returning true when the function argument has a length greater than specified
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthGreaterThan(int _len)
Predicate returning true when the length is greater than a specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthGreaterThan(int _len)
Predicate returning true when the length is greater than a specified value
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthGreaterThanOrEqual(int _len)
Predicate returning true when the function argument has a length greater than or equal to specified
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthGreaterThanOrEqual(int _len)
Predicate returning true when the length is greater than or equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthGreaterThanOrEqual(int _len)
Predicate returning true when the length is greater than or equal to a specified value
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthLessThan(int _len)
Predicate returning true when the function argument has a length less than specified
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthLessThan(int _len)
Predicate returning true when the length is less than a specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthLessThan(int _len)
Predicate returning true when the length is less than a specified value
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthLessThanOrEqual(int _len)
Predicate returning true when the function argument has a length less than or equal to specified
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthLessThanOrEqual(int _len)
Predicate returning true when the length is less than or equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthLessThanOrEqual(int _len)
Predicate returning true when the length is less than or equal to a specified value
|
static Predicates.Predicate1<java.lang.String> |
Strings.lengthNotEqual(int _len)
Predicate returning true when the function argument does not have a specified length
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.lengthNotEqual(int _len)
Predicate returning true when the length is not equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.lengthNotEqual(int _len)
Predicate returning true when the length is not equal to a specified value
|
static <T extends java.lang.Comparable<T>> |
Objects.lessThan(T _value)
Predicate returning true when the function argument is less than a value
|
static <T extends java.lang.Comparable<T>> |
Objects.lessThanOrEqual(T _value)
Predicate returning true when the function argument is less than or equal to a value
|
static Predicates.Predicate1<MemberInfo> |
Reflection.memberEqual(MemberInfo _member)
Predicate evaluating to true if given member equals the processed value
|
static Predicates.Predicate1<MemberInfo> |
Reflection.memberNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<MemberInfo> |
Reflection.memberNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Method> |
Reflection.methodEqual(java.lang.reflect.Method _method)
Predicate evaluating to true if given method equals the processed value
|
static Predicates.Predicate1<java.lang.reflect.Method> |
Reflection.methodNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Method> |
Reflection.methodNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a method name matches the given name
|
static <T> Predicates.Predicate1<T> |
Objects.notContainedBy(java.lang.Iterable _elements)
Predicate returning true if an element is not contained in the function argument (Iterable)
|
static <T> Predicates.Predicate1<T> |
Objects.notContainedIn(T[] _elements)
Predicate returning true if an element is not contained in the function argument (Array)
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.notContains(java.lang.Object _item)
Predicate returning true when the function argument does not contain an item
|
static Predicates.Predicate1<java.lang.String> |
Strings.notContains(java.lang.String _part)
Predicate returning true when the function argument does not contain some string
|
static <T> Predicates.Predicate1<T> |
Objects.notContains(java.lang.String _part)
Predicate returning true when the function argument's toString() does not contain some string
|
static Predicates.Predicate1<java.lang.String> |
Strings.notContains(java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument does not contain some string
|
static <T> Predicates.Predicate1<T> |
Objects.notContains(java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not contain some string
|
static <T> Predicates.Predicate1<T[]> |
Arrays.notContains(T _item)
Predicate returning true when the function argument does not contain an item
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.notContainsAll(java.lang.Iterable _items)
Predicate returning true when the function argument does not contain all items
|
static <T> Predicates.Predicate1<T[]> |
Arrays.notContainsAll(T[] _items)
Predicate returning true when the function argument does not contain all items
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.notContainsAny(java.lang.Iterable _items)
Predicate returning true when the function argument does not contain any of the given items
|
static <T> Predicates.Predicate1<T[]> |
Arrays.notContainsAny(T[] _items)
Predicate returning true when the function argument does not contain any of the given items
|
static Predicates.Predicate1<java.lang.String> |
Strings.notEndsWith(java.lang.String _suffix)
Predicate returning true when the function argument does not end with a suffix
|
static <T> Predicates.Predicate1<T> |
Objects.notEndsWith(java.lang.String _suffix)
Predicate returning true when the function argument's toString() does not end with a suffix
|
static Predicates.Predicate1<java.lang.String> |
Strings.notEndsWith(java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument does not end with a suffix
|
static <T> Predicates.Predicate1<T> |
Objects.notEndsWith(java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not end with a suffix
|
static Predicates.Predicate1<java.lang.Iterable> |
Iterables.notEqual(java.lang.Iterable _value)
Predicate returning true when the function argument is not equal to another array
|
static <T> Predicates.Predicate1<T> |
Objects.notEqual(java.lang.Object _value)
Predicate returning true when the function argument is not equal to a value
|
static <T> Predicates.Predicate1<T[]> |
Arrays.notEqual(T[] _value)
Predicate returning true when the function argument is not equal to another array
|
static <T> Predicates.Predicate1<T> |
Objects.notInstanceOf(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the class specified
|
static Predicates.Predicate1<java.lang.String> |
Strings.notStartsWith(java.lang.String _prefix)
Predicate returning true when the function argument does not start with a prefix
|
static <T> Predicates.Predicate1<T> |
Objects.notStartsWith(java.lang.String _prefix)
Predicate returning true when the function argument's toString() does not start with a prefix
|
static Predicates.Predicate1<java.lang.String> |
Strings.notStartsWith(java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument does not start with a prefix
|
static <T> Predicates.Predicate1<T> |
Objects.notStartsWith(java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not start with a prefix
|
static <T> Predicates.Predicate1<T> |
Objects.print()
Predicate returning true always, can be used to print out all elements in an all() Linq statement
|
static <T> Predicates.Predicate1<T> |
Objects.println()
Predicate returning true always, can be used to print out all elements in an all() Linq statement
|
static Predicates.Predicate1<PropertyInfo> |
Reflection.propertyEqual(PropertyInfo _member)
Predicate evaluating to true if given property equals the processed value
|
static Predicates.Predicate1<PropertyInfo> |
Reflection.propertyNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<PropertyInfo> |
Reflection.propertyNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a property name matches the given name
|
static Predicates.Predicate1<java.lang.String> |
Strings.startsWith(java.lang.String _prefix)
Predicate returning true when the function argument starts with a prefix
|
static <T> Predicates.Predicate1<T> |
Objects.startsWith(java.lang.String _prefix)
Predicate returning true when the function argument's toString() starts with a prefix
|
static Predicates.Predicate1<java.lang.String> |
Strings.startsWith(java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument starts with a prefix
|
static <T> Predicates.Predicate1<T> |
Objects.startsWith(java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() starts with a prefix
|
Modifier and Type | Method and Description |
---|---|
T |
SharedData.compareExchangePredicate(T newValue,
Predicates.Predicate1<T> predicate)
Compares and replaces the encapsulated (old) value with the newValueif the given predicate returns true.
|
Modifier and Type | Method and Description |
---|---|
void |
Matcher.addAction(Predicates.Predicate1<T> predicate,
Actions.Action1<T> action)
Adds a predicate and a function.
|
void |
Matcher.addFunction(Predicates.Predicate1<T> predicate)
Adds a predicate and an identity function (F(x)=>x).
|
void |
Matcher.addFunction(Predicates.Predicate1<T> predicate,
Functions.Function1<T,TResult> func)
Adds a predicate and a function.
|
static <T> boolean |
Linq.all(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns true if a condition is true for all items in a sequence.
|
static <T> boolean |
Linq.all(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns true if a condition is true for all items in a sequence.
|
static <T> boolean |
Linq.any(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns true if a condition is true for any of the items in a sequence.
|
static <T> boolean |
Linq.any(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns true if a condition is true for any of the items in a sequence.
|
static <T> int |
Linq.countWhere(java.lang.Iterable<? extends T> values,
Predicates.Predicate1<? super T> predicate)
Returns the number of occurrences that satisfy the given condition.
|
static <T> int |
Linq.countWhere(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns the number of occurrences that satisfy the given condition.
|
static <T> T |
Linq.first(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns the first element in the provided sequence that matches a condition.
|
static <T> T |
Linq.first(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns the first element in the provided sequence that matches a condition.
|
static <T> T |
Linq.firstOrDefault(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns the first element in the provided sequence that matches a condition.
|
static <T> T |
Linq.firstOrDefault(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns the first element in the provided sequence that matches a condition.
|
static <T> T |
Linq.last(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns the last element in the provided sequence that matches a condition.
|
static <T> T |
Linq.last(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns the last element in the provided sequence that matches a condition.
|
static <T> T |
Linq.lastOrDefault(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns the last element in the provided sequence that matches a condition.
|
static <T> T |
Linq.lastOrDefault(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns the last element in the provided sequence that matches a condition.
|
static <T> Pair<java.lang.Iterable<T>,java.lang.Iterable<T>> |
Linq.partition(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Partitions the given values based on a predicate.
|
static <T> Pair<T[],T[]> |
Linq.partition(T[] values,
Predicates.Predicate1<T> predicate)
Partitions the given values based on a predicate.
|
static <T> java.lang.Iterable<T> |
Linq.range(T start,
Predicates.Predicate1<? super T> predicate,
Functions.Function1<T,T> stepFunction)
Returns a range of values, by using a step function, until the predicate returns false
|
static <T> java.lang.Iterable<T> |
Linq.skipWhile(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Skips items in the sequence for which a predicate is true, returning the rest.
|
static <T> T[] |
Linq.skipWhile(T[] values,
Predicates.Predicate1<T> predicate)
Skips items in the sequence for which a predicate is true, returning the rest.
|
static <T> java.lang.Iterable<T> |
Linq.takeWhile(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns items in the sequence while a predicate is true.
|
static <T> T[] |
Linq.takeWhile(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns items in the sequence while a predicate is true.
|
static <T> java.lang.Iterable<T> |
Linq.where(java.lang.Iterable<T> values,
Predicates.Predicate1<? super T> predicate)
Returns a subset of the provided sequence, which conforms to the given predicate i.e.
|
static <T> T[] |
Linq.where(T[] values,
Predicates.Predicate1<? super T> predicate)
Returns a subset of the provided sequence, which conforms to the given predicate i.e.
|