Interface Function<T,V>

All Superinterfaces:
Function<T,V>, Serializable
All Known Implementing Classes:
AbstractImmutableEntry.KeyFunction, AbstractImmutableEntry.PairFunction, AbstractImmutableEntry.ValueFunction, AbstractMultimap.KeyValuePairFunction, ArrayProcedureFJTaskRunner.ProcedureExtractor, BatchIterableProcedureFJTaskRunner.ProcedureExtractor, CaseFunction, CheckedFunction, DoubleFunctionImpl, FJBatchIterableProcedureRunner.ProcedureExtractor, FJListObjectIntProcedureRunner.ProcedureExtractor, FJListProcedureRunner.ProcedureExtractor, Functions.BindFunction2, Functions.ClassForNameFunction, Functions.ClassFunction, Functions.DefaultFunction, Functions.DoublePassThruFunction, Functions.FalseFunction, Functions.FirstNotEmptyCollectionFunction, Functions.FirstNotEmptyStringFunction, Functions.FirstNotNullFunction, Functions.FirstOfPairFunction, Functions.FixedValueFunction, Functions.FunctionChain, Functions.IntegerPassThruFunction, Functions.LongPassThruFunction, Functions.MapKeyFunction, Functions.MapValueFunction, Functions.MathSinFunction, Functions.NullSafeFunction, Functions.PassThruFunction, Functions.SecondOfPairFunction, Functions.SizeFunction, Functions.SquaredIntegerFunction, Functions.StringToIntegerFunction, Functions.StringTrimFunction, Functions.SwappedPairFunction, Functions.SynchronizedFunction, Functions.ThrowingFunctionAdapter, Functions.ToStringFunction, Functions.TrueFunction, IfFunction, IntegerFunctionImpl, LongFunctionImpl, MultimapFunctions.MultimapGetFunction, ObjectIntProcedureFJTaskRunner.ObjectIntProcedureExtractor, ProcedureFJTaskRunner.ProcedureExtractor, StringFunctions.AppendFunction, StringFunctions.FirstLetterFunction, StringFunctions.LengthFunction, StringFunctions.PrependFunction, StringFunctions.SubStringFunction, StringFunctions.ToIntegerFunction, StringFunctions.ToLowerCaseFunction, StringFunctions.ToUpperCaseFunction, StringFunctions.TrimFunction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Function<T,V> extends Function<T,V>, Serializable
Function is a one-argument lambda which performs a transformation on the object of type T passed to the valueOf() method. This transformation can return the value of calling a getter, or perform some more elaborate logic to calculate a value, of type V.
  • Method Summary

    Modifier and Type
    Method
    Description
    default V
    apply(T each)
     
    valueOf(T each)
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • valueOf

      V valueOf(T each)
    • apply

      default V apply(T each)
      Specified by:
      apply in interface Function<T,V>