Modifier and Type | Interface and Description |
---|---|
interface |
IAggregator<SRCTYPE,DSTTYPE>
Aggregate a list of input objects to a single output object (change n to 1).
|
interface |
ISplitter<SRCTYPE,DSTTYPE>
Splits an input object to a list of output objects (change 1 to n).
|
Modifier and Type | Method and Description |
---|---|
protected IFunction<KEYTYPE,KEYSTORETYPE> |
MappedCache.getCacheKeyProvider() |
protected IFunction<KEYTYPE,VALUETYPE> |
MappedCache.getValueProvider() |
Constructor and Description |
---|
Cache(IFunction<KEYTYPE,VALUETYPE> aCacheValueProvider,
int nMaxSize,
String sCacheName) |
Cache(IFunction<KEYTYPE,VALUETYPE> aCacheValueProvider,
int nMaxSize,
String sCacheName,
boolean bAllowNullValues) |
Cache(IFunction<KEYTYPE,VALUETYPE> aCacheValueProvider,
String sCacheName) |
MappedCache(IFunction<KEYTYPE,KEYSTORETYPE> aCacheKeyProvider,
IFunction<KEYTYPE,VALUETYPE> aValueProvider,
int nMaxSize,
String sCacheName,
boolean bAllowNullValues)
Constructor
|
MappedCache(IFunction<KEYTYPE,KEYSTORETYPE> aCacheKeyProvider,
IFunction<KEYTYPE,VALUETYPE> aValueProvider,
int nMaxSize,
String sCacheName,
boolean bAllowNullValues)
Constructor
|
Modifier and Type | Method and Description |
---|---|
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> |
MapperIterator.getConverter() |
Modifier and Type | Method and Description |
---|---|
default <DSTTYPE> IIterableIterator<DSTTYPE> |
IIterableIterator.withMapper(IFunction<? super ELEMENTTYPE,? extends DSTTYPE> aMapper) |
Constructor and Description |
---|
MapperIterator(IIterableIterator<? extends SRCTYPE> aBaseIter,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
MapperIterator(Iterable<? extends SRCTYPE> aBaseCont,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
MapperIterator(Iterator<? extends SRCTYPE> aBaseIter,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFormatterString
Base implementation class of the
IFunction interface that provides
the common functionality. |
class |
FormatterMinLengthAddLeading
A string formatter that ensures that a string has a minimum length by filling
the remaining chars with a custom character at front (leading).
|
class |
FormatterMinLengthAddTrailing
A string formatter that ensures that a string has a minimum length by filling
the remaining chars with a custom character at the end (trailing).
|
class |
FormatterStringPrefixAndSuffix
A formatter that adds a prefix and/or a suffix to a string.
|
class |
FormatterStringSkipPrefixAndSuffix
A formatter that skip a prefix and/or a suffix to a string.
|
Modifier and Type | Method and Description |
---|---|
IFunction<? super DATATYPE,? extends String> |
FormatableObject.getFormatter() |
IFunction<? super DATATYPE,? extends String> |
IFormatableObject.getFormatter() |
Constructor and Description |
---|
FormatableObject(DATATYPE aValue,
IFunction<? super DATATYPE,? extends String> aFormatter)
Init the field with a value.
|
Modifier and Type | Method and Description |
---|---|
default <V> IFunction<T,V> |
IFunction.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this function to its input,
and then applies the
after function to the result. |
default <V> IFunction<V,R> |
IFunction.compose(Function<? super V,? extends T> before)
Returns a composed function that first applies the
before function
to its input, and then applies this function to the result. |
static <T> IFunction<T,T> |
IFunction.identity()
Returns a function that always returns its input argument.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ITypeConverter<SRC,DST>
Special interface that is used to convert between values of different types.
|
interface |
ITypeConverterRule<SRC,DST>
Flexible type converter that can handle multiple source and/or destination
classes.
|
Modifier and Type | Method and Description |
---|---|
default <DST> void |
ITypeConverterRegistry.registerTypeConverterRuleAnySourceFixedDestination(Class<DST> aDstClass,
IFunction<? super Object,? extends DST> aConverter) |
default <SRC,DST> void |
ITypeConverterRegistry.registerTypeConverterRuleAssignableSourceFixedDestination(Class<SRC> aSrcClass,
Class<DST> aDstClass,
IFunction<? super SRC,? extends DST> aConverter) |
default <SRC> void |
ITypeConverterRegistry.registerTypeConverterRuleFixedSourceAnyDestination(Class<SRC> aSrcClass,
IFunction<? super SRC,? extends Object> aInBetweenConverter) |
default <SRC,DST> void |
ITypeConverterRegistry.registerTypeConverterRuleFixedSourceAssignableDestination(Class<SRC> aSrcClass,
Class<DST> aDstClass,
IFunction<? super SRC,? extends DST> aConverter) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTypeConverterRule<SRC,DST>
Abstract type converter rule implementation
|
class |
TypeConverterRuleAnySourceFixedDestination<DST>
Type converter than can convert from a base source class to a destination
class.
|
class |
TypeConverterRuleAssignableSourceFixedDestination<SRC,DST>
Abstract type converter than can convert from a base source class to a
destination class.
|
class |
TypeConverterRuleFixedSourceAnyDestination<SRC>
Abstract type converter than can convert from a base source class to a
destination class.
|
class |
TypeConverterRuleFixedSourceAssignableDestination<SRC,DST>
Abstract type converter than can convert from a base source class to a
destination class.
|
Constructor and Description |
---|
TypeConverterRuleAnySourceFixedDestination(Class<DST> aDstClass,
IFunction<? super Object,? extends DST> aConverter) |
TypeConverterRuleAssignableSourceFixedDestination(Class<SRC> aSrcClass,
Class<DST> aDstClass,
IFunction<? super SRC,? extends DST> aConverter) |
TypeConverterRuleFixedSourceAnyDestination(Class<SRC> aSrcClass,
IFunction<? super SRC,? extends Object> aInBetweenConverter) |
TypeConverterRuleFixedSourceAssignableDestination(Class<SRC> aSrcClass,
Class<DST> aDstClass,
IFunction<? super SRC,? extends DST> aConverter) |
Copyright © 2014–2019 Philip Helger. All rights reserved.