Package | Description |
---|---|
propel.core.functional | |
propel.core.functional.projections | |
propel.core.utils |
Modifier and Type | Class and Description |
---|---|
static class |
Predicates.Predicate1<T1>
Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.
|
Modifier and Type | Method and Description |
---|---|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.append(java.lang.String _suffix)
Returns the string with some appended text
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
MiscProjections.argToResult()
Identity function
|
static <T> Functions.Function1<T,T> |
MiscProjections.argumentToResult()
Identity function
|
static <T> Functions.Function1<T[],java.util.List<T>> |
Arrays.asList()
Returns the array as a list
|
static <T> Functions.Function1<T[],ReifiedList<T>> |
Arrays.asReifiedList()
Returns the array as a reified list
|
static Functions.Function1<java.lang.String,java.lang.Character> |
Strings.charAt(int _index)
Returns the character at specified index
|
static Functions.Function1<java.lang.String,java.lang.Integer> |
Strings.count(java.lang.String _str,
StringComparison _stringComparison)
Returns the number of occurrences of a string within a string
|
static Functions.Function1<char[],java.lang.Integer> |
Strings.countChars(char _char)
Returns the number of occurrences of a character within a character array
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.crop(char[] _except)
Crops all characters from the start/end of the given string, until an except character is encountered
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.cropEnd(char[] _except)
Crops all characters from the end of the given string, until an except character is encountered
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.cropStart(char[] _except)
Crops all characters from the start of the given string, until an except character is encountered
|
static Functions.Function1<java.io.File,java.lang.String> |
Files.getAbsolutePath()
Returns the absolute path of the file
|
static Functions.Function1<java.lang.Object,java.lang.String> |
Objects.getClassName()
Calls getClass().getName() on the function argument
|
static Functions.Function1<java.lang.Object,java.lang.String> |
Objects.getClassNameSimple()
Calls getClass().getSimpleName() on the function argument
|
static Functions.Function1<java.lang.Object,java.lang.Class<?>> |
Objects.getClassType()
Calls getClass() on the function argument
|
static <T> Functions.Function1<T[],T> |
Arrays.getElement(int _index)
Returns the element at specified index
|
static <T> Functions.Function1<T[],T> |
Arrays.getElementNulling(int _index)
Returns the element at specified index, but if this is not possible, it returns null
|
static <T> Functions.Function1<T[],T> |
Arrays.getElementSafe(int _index,
T _defaultValue)
Returns the element at specified index, but if this is not possible, it returns the specified default value
|
static Functions.Function1<java.io.File,java.lang.String> |
Files.getExtension(java.io.File file)
Returns the extension of the file
|
static Functions.Function1<java.lang.String,java.io.File> |
Files.getFile()
Returns a File for a given path
|
static Functions.Function1<java.lang.Object,java.lang.Integer> |
Objects.getHashCode()
Returns the object's hashcode
|
static Functions.Function1<java.io.File,java.lang.String> |
Files.getName()
Returns the name of the file
|
static Functions.Function1<java.io.File,java.io.File> |
Files.getParent()
Returns the parent of the file
|
static Functions.Function1<java.lang.String,java.lang.Integer> |
Strings.indexOf(java.lang.String _part,
StringComparison _stringComparison)
Returns the first index where a part is encountered within a string value.
|
static <T> Functions.Function1<java.lang.Object,T> |
InvokeNoArgs.invokeFunction(java.lang.reflect.Method _method)
A no-argument function which invokes the method name specified on the given object.
|
static <T> Functions.Function1<java.lang.Object,T> |
InvokeOneArg.invokeFunction(java.lang.Object _obj,
java.lang.reflect.Method _method)
A one-argument function which invokes the method specified on the given object, passing the function argument to the invoked method.
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
InvokeDynamicFunc.invokeFunction(java.lang.String methodName)
A one-argument function which invokes the no-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
InvokeDynamicFunc.invokeFunction(java.lang.String methodName,
java.lang.Object[] obj)
A one-argument action which invokes the one-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
InvokeDynamicFunc.invokeFunctionWithOneArgOn(java.lang.Object obj,
java.lang.String methodName)
A one-argument function which invokes the method name specified on the given object, passing the function argument to the invoked
method.
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
InvokeDynamicFunc.invokeMethod(java.lang.String methodName)
A one-argument action which invokes the no-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
InvokeDynamicFunc.invokeMethod(java.lang.String methodName,
java.lang.Object[] obj)
A one-argument action which invokes the one-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
InvokeNoArgs.invokeMethodFunc(java.lang.reflect.Method _method)
A no-argument action which invokes the method specified on the given object.
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
InvokeOneArg.invokeMethodFunc(java.lang.Object _obj,
java.lang.reflect.Method _method)
A one-argument action which invokes the method specified on the given object, passing the function argument to the invoked method.
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
InvokeDynamicFunc.invokeMethodWithOneArgOn(java.lang.Object obj,
java.lang.String methodName)
A one-argument action which invokes the method name specified on the given object, passing the function argument to the invoked method.
|
static <K,V> Functions.Function1<KeyValuePair<K,V>,K> |
Tuples.kvpKeySelector()
Calls getKey() on map entries specified
|
static <K,V> Functions.Function1<KeyValuePair<K,V>,V> |
Tuples.kvpValueSelector()
Calls getValue() on key/value pair function arguments
|
static Functions.Function1<java.lang.String,java.lang.Integer> |
Strings.lastIndexOf(java.lang.String value,
java.lang.String _part,
StringComparison _stringComparison)
Returns the last index where a part is encountered within a string value.
|
static Functions.Function1<java.lang.String,java.lang.Integer> |
Strings.length()
Returns the length of the string value
|
static <T> Functions.Function1<T[],java.lang.Integer> |
Arrays.length()
Returns the length of the array
|
static <K,V> Functions.Function1<java.util.Map.Entry<K,V>,K> |
Tuples.mapKeySelector()
Calls getKey() on map entries specified
|
static <K,V> Functions.Function1<java.util.Map.Entry<K,V>,V> |
Tuples.mapValueSelector()
Calls getValue() on map entries specified
|
static <TFirst,TSecond> |
Tuples.pairFirstSelector()
Returns the first element of the pair
|
static <TFirst,TSecond> |
Tuples.pairSecondSelector()
Returns the second element of the pair
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.prepend(java.lang.String _prefix)
Returns the string with some prepended text
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.replace(java.lang.String _textToReplace,
java.lang.String _replaceWithText,
StringComparison _stringComparison)
Returns the string after some text replacement
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.stringAt(int _index)
Returns the string at specified index
|
static <T> Functions.Function1<T[],T[]> |
Arrays.subArray(int _startIndex,
int _endIndex)
Returns a portion of the array
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.substring(int _startIndex,
int _length)
Returns a sub-string of the given string, using a start index and a length from start
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.substringEnd(int _length)
Returns a sub-string of the given string, using a start index from start
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.substringNullCoalescing(int _startIndex,
int _length)
Returns a sub-string of the given string, using a start index and a length from start.
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.substringSafe(int _startIndex,
int _length,
java.lang.String _defaultValue)
Returns a sub-string of the given string, using a start index and a length from start.
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.substringStart(int _startIndex)
Returns a sub-string of the given string, using a start index from start
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
MiscProjections.throwDetailedFunc(java.lang.Throwable _e)
Action that throws the specified exception when being invoked.
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.toLowerCase()
Calls toLowerCase() on function arguments
|
static Functions.Function1<java.lang.Object,java.lang.String> |
Objects.toStringify()
Calls toString() on function arguments
|
static <T> Functions.Function1<T[],java.lang.String> |
Arrays.toStringify()
Returns the string representation of the array
|
static <T> Functions.Function1<T[],java.lang.String> |
Arrays.toStringifyDeep()
Returns the deep string representation of the array
|
static Functions.Function1<java.lang.Object,java.lang.String> |
Objects.toStringifyNullCoalescing()
Calls toString() on function arguments, null-coalescing (uses empty string)
|
static Functions.Function1<java.lang.Object,java.lang.String> |
Objects.toStringifySafe(java.lang.String _defaultValue)
Calls toString() on function arguments, using a default value when null is encountered
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.toTitleCase()
Calls titleCase() on function arguments
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.toUpperCase()
Calls toUpperCase() on function arguments
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.trim()
Returns the trimmed version of the given string
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.trimEnd(char[] _chars)
Trims the end and returns the given string
|
static Functions.Function1<java.lang.String,java.lang.String> |
Strings.trimStart(char[] _chars)
Trims the start and returns the given string
|
Modifier and Type | Method and Description |
---|---|
void |
Matcher.addFunction(Predicates.Predicate1<T> predicate,
Functions.Function1<T,TResult> func)
Adds a predicate and a function.
|
static <TSource,TAccumulate,TResult> |
Linq.aggregate(java.lang.Iterable<TSource> values,
TAccumulate seed,
Functions.Function2<TAccumulate,? super TSource,TAccumulate> function,
Functions.Function1<TAccumulate,TResult> resultSelector)
Applies an accumulator function over a sequence.
|
static <TSource,TAccumulate,TResult> |
Linq.aggregate(TSource[] values,
TAccumulate seed,
Functions.Function2<TAccumulate,? super TSource,TAccumulate> function,
Functions.Function1<TAccumulate,TResult> resultSelector)
Applies an accumulator function over a sequence.
|
static <TKey,TResult> |
Linq.groupBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector)
Groups elements by a specified key.
|
static <TKey,TResult> |
Linq.groupBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer)
Groups elements by a specified key and comparer.
|
static <TKey,TResult> |
Linq.groupBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector)
Groups elements by a specified key.
|
static <TKey,TResult> |
Linq.groupBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer)
Groups elements by a specified key and comparer.
|
static <TOuter,TInner,TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.join(java.lang.Iterable<TOuter> outerValues,
java.lang.Iterable<TInner> innerValues,
Functions.Function1<TOuter,TKey> outerKeySelector,
Functions.Function1<TInner,TKey> innerKeySelector,
Functions.Function2<TOuter,TInner,TResult> resultSelector)
Performs an inner join (more specifically an equi-join) over two sequences.
|
static <TOuter,TInner,TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.join(java.lang.Iterable<TOuter> outerValues,
java.lang.Iterable<TInner> innerValues,
Functions.Function1<TOuter,TKey> outerKeySelector,
Functions.Function1<TInner,TKey> innerKeySelector,
Functions.Function2<TOuter,TInner,TResult> resultSelector)
Performs an inner join (more specifically an equi-join) over two sequences.
|
static <TOuter,TInner,TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.join(TOuter[] outerValues,
TInner[] innerValues,
Functions.Function1<TOuter,TKey> outerKeySelector,
Functions.Function1<TInner,TKey> innerKeySelector,
Functions.Function2<TOuter,TInner,TResult> resultSelector)
Performs an inner join (more specifically an equi-join) over two sequences.
|
static <TOuter,TInner,TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.join(TOuter[] outerValues,
TInner[] innerValues,
Functions.Function1<TOuter,TKey> outerKeySelector,
Functions.Function1<TInner,TKey> innerKeySelector,
Functions.Function2<TOuter,TInner,TResult> resultSelector)
Performs an inner join (more specifically an equi-join) over two sequences.
|
static <TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.orderBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector)
Orders a sequence by a specified key.
|
static <TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.orderBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer)
Orders a sequence by a specified key.
|
static <TKey extends java.lang.Comparable<TKey>,TResult> |
Linq.orderBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector)
Orders a sequence by a specified key.
|
static <TKey,TResult> |
Linq.orderBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer)
Orders a sequence by a specified key.
|
static <TKey,TKey2,TResult> |
Linq.orderByThenBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer,
Functions.Function1<? super TResult,TKey2> keySelector2,
java.util.Comparator<? super TKey2> comparer2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey,TKey2,TResult> |
Linq.orderByThenBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer,
Functions.Function1<? super TResult,TKey2> keySelector2,
java.util.Comparator<? super TKey2> comparer2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey extends java.lang.Comparable<TKey>,TKey2 extends java.lang.Comparable<TKey2>,TResult> |
Linq.orderByThenBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
Functions.Function1<? super TResult,TKey2> keySelector2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey extends java.lang.Comparable<TKey>,TKey2 extends java.lang.Comparable<TKey2>,TResult> |
Linq.orderByThenBy(java.lang.Iterable<TResult> values,
Functions.Function1<? super TResult,TKey> keySelector,
Functions.Function1<? super TResult,TKey2> keySelector2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey,TKey2,TResult> |
Linq.orderByThenBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer,
Functions.Function1<TResult,TKey2> keySelector2,
java.util.Comparator<? super TKey2> comparer2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey,TKey2,TResult> |
Linq.orderByThenBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
java.util.Comparator<? super TKey> comparer,
Functions.Function1<TResult,TKey2> keySelector2,
java.util.Comparator<? super TKey2> comparer2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey extends java.lang.Comparable<TKey>,TKey2 extends java.lang.Comparable<TKey2>,TResult> |
Linq.orderByThenBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
Functions.Function1<TResult,TKey2> keySelector2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
static <TKey extends java.lang.Comparable<TKey>,TKey2 extends java.lang.Comparable<TKey2>,TResult> |
Linq.orderByThenBy(TResult[] values,
Functions.Function1<TResult,TKey> keySelector,
Functions.Function1<TResult,TKey2> keySelector2)
Orders a sequence by a specified key and matching key results get sorted by a second key.
|
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.range(T start,
T end,
Functions.Function1<T,T> stepFunction)
Returns a range of values, from start to end (exclusive).
|
static <TSource,TResult> |
Linq.select(java.lang.Iterable<TSource> values,
Functions.Function1<? super TSource,TResult> selector)
Acts as a Select LINQ function.
|
static <TSource,TResult> |
Linq.select(TSource[] values,
Functions.Function1<TSource,TResult> selector)
Acts as a Select LINQ function.
|
static <TSource,TResult> |
Linq.selectMany(java.lang.Iterable<TSource> values,
Functions.Function1<? super TSource,java.util.List<TResult>> selector)
Acts as a SelectMany LINQ function, to allow selection of iterables and return all their sub-items.
|
static <TSource,TResult> |
Linq.selectMany(TSource[] values,
Functions.Function1<TSource,ReifiedList<TResult>> selector)
Acts as a SelectMany LINQ function, to allow selection of iterables and return all their sub-items.
|
void |
Matcher.setDefaultFunction(Functions.Function1<T,TResult> func)
Sets the function that generates a default result, if there are no matches.
|
static <T,TKey extends java.lang.Comparable<TKey>,TValue> |
Linq.toAvlHashtable(java.lang.Iterable<T> values,
Functions.Function1<T,TKey> keySelector,
Functions.Function1<T,TValue> valueSelector)
Converts a sequence of items into a key/value AVL tree.
|
static <T,TKey extends java.lang.Comparable<TKey>,TValue> |
Linq.toAvlHashtable(java.lang.Iterable<T> values,
Functions.Function1<T,TKey> keySelector,
Functions.Function1<T,TValue> valueSelector)
Converts a sequence of items into a key/value AVL tree.
|
static <T,TKey extends java.lang.Comparable<TKey>,TValue> |
Linq.toAvlHashtable(T[] values,
Functions.Function1<T,TKey> keySelector,
Functions.Function1<T,TValue> valueSelector)
Converts a sequence of items into a key/value AVL hashtable.
|
static <T,TKey extends java.lang.Comparable<TKey>,TValue> |
Linq.toAvlHashtable(T[] values,
Functions.Function1<T,TKey> keySelector,
Functions.Function1<T,TValue> valueSelector)
Converts a sequence of items into a key/value AVL hashtable.
|
static <T,TResult1,TResult2> |
Linq.unzip(java.lang.Iterable<T> values,
Functions.Function1<? super T,Pair<TResult1,TResult2>> func)
Performs the reverse operation to zip()
|
static <T,TResult1,TResult2> |
Linq.unzip(T[] values,
Functions.Function1<T,Pair<TResult1,TResult2>> func)
Performs the reverse operation to zip()
|