| Package | Description |
|---|---|
| eu.fthevenet.binjr.data.adapters | |
| eu.fthevenet.binjr.data.codec | |
| eu.fthevenet.util.concurrent | |
| eu.fthevenet.util.function |
| Modifier and Type | Method and Description |
|---|---|
protected <R> R |
DataAdapter.validateParameter(java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String paramName,
CheckedFunction<java.lang.String,R,InvalidAdapterParameterException> validator) |
| Modifier and Type | Method and Description |
|---|---|
CheckedFunction<java.lang.String,java.time.ZonedDateTime,DecodingDataFromAdapterException> |
CsvDecoder.getDateParser()
Returns the function used to parse date fields.
|
CheckedFunction<java.lang.String,T,DecodingDataFromAdapterException> |
CsvDecoder.getNumberParser()
Returns the function used to parse numeric fields.
|
| Constructor and Description |
|---|
CsvDecoder(java.lang.String encoding,
char delimiter,
TimeSeriesProcessorFactory<T> timeSeriesFactory,
CheckedFunction<java.lang.String,T,DecodingDataFromAdapterException> numberParser,
CheckedFunction<java.lang.String,java.time.ZonedDateTime,DecodingDataFromAdapterException> dateParser)
Initializes a new instance of the
CsvDecoder class. |
CsvDecoder(java.lang.String encoding,
char delimiter,
TimeSeriesProcessorFactory<T> timeSeriesFactory,
CheckedFunction<java.lang.String,T,DecodingDataFromAdapterException> numberParser,
CheckedFunction<java.lang.String,java.time.ZonedDateTime,DecodingDataFromAdapterException> dateParser)
Initializes a new instance of the
CsvDecoder class. |
| Modifier and Type | Method and Description |
|---|---|
<T,R,E extends java.lang.Exception> |
ReadWriteLockHelper.LockHelper.lock(CheckedFunction<T,R,E> operation,
T t)
Encapsulated the evaluation of the supplied
CheckedFunction within the boundaries of the lock. |
<T,R,E extends java.lang.Exception> |
ReadWriteLockHelper.LockHelper.tryLock(CheckedFunction<T,R,E> operation,
T t)
Tries to acquire the lock and if successful, evaluates the supplied
CheckedFunction within the boundaries of the lock. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R,E extends java.lang.Exception> |
CheckedLambdas.wrap(CheckedFunction<T,R,E> function)
Wraps a
CheckedFunction inside a Function and rethrow the
original exception. |
Copyright © 2018 Frederic Thevenet. All rights reserved.