Package cz.o2.proxima.core.functional
Interface UnaryFunction<IN,OUT>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
AttributeWriterBase.Factory<W>,BatchLogReader.Factory<T>,BulkAttributeWriter.Factory<T>,CachedView.Factory,CommitLogReader.Factory<T>,OnlineAttributeWriter.Factory<T>,RandomAccessReader.Factory<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Stable @FunctionalInterface public interface UnaryFunction<IN,OUT> extends java.io.Serializable
Function of single argument.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description OUTapply(IN input)Apply function and return result.static <T> UnaryFunction<T,T>identity()Return identity function.
-
-
-
Method Detail
-
identity
static <T> UnaryFunction<T,T> identity()
Return identity function.- Type Parameters:
T- the type of input- Returns:
- the identity function
-
-