Module org.monospark.remix
Package org.monospark.remix.internal
Class RecordOperationsImpl<R extends Record>
java.lang.Object
org.monospark.remix.internal.RecordOperationsImpl<R>
- All Implemented Interfaces:
RecordOperations<R>
public final class RecordOperationsImpl<R extends Record> extends Object implements RecordOperations<R>
-
Method Summary
Modifier and Type Method Description <T> RecordOperations<R>add(LambdaSupport.WrappedFunction<R,T> component, UnaryOperator<T> op)Adds a new operation to a record component.<T> LambdaSupport.WrappedFunction<R,T>all()Returns a component identifier that indicates that an operation should be performed on all record components.<T> RecordOperations<R>check(LambdaSupport.WrappedFunction<R,T> component, Predicate<T> toCheck)Adds a new operation to a record component that verifies if a given predicate is true.<T> UnaryOperator<T>getOperator(RecordParameter param)<T> RecordOperations<R>notNull(LambdaSupport.WrappedFunction<R,T> component)Adds a new operation to a record component that verifies that the input is not null.
-
Method Details
-
getOperator
-
add
public <T> RecordOperations<R> add(LambdaSupport.WrappedFunction<R,T> component, UnaryOperator<T> op)Description copied from interface:RecordOperationsAdds a new operation to a record component.- Specified by:
addin interfaceRecordOperations<R extends Record>- Parameters:
component- the record componentop- the operation that should be performed
-
notNull
Description copied from interface:RecordOperationsAdds a new operation to a record component that verifies that the input is not null.- Specified by:
notNullin interfaceRecordOperations<R extends Record>- Parameters:
component- the record component
-
check
public <T> RecordOperations<R> check(LambdaSupport.WrappedFunction<R,T> component, Predicate<T> toCheck)Description copied from interface:RecordOperationsAdds a new operation to a record component that verifies if a given predicate is true.- Specified by:
checkin interfaceRecordOperations<R extends Record>- Parameters:
component- the record component
-
all
Description copied from interface:RecordOperationsReturns a component identifier that indicates that an operation should be performed on all record components.- Specified by:
allin interfaceRecordOperations<R extends Record>
-