Class Functions.DefaultFunction<T,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Function<T,​V>, Function<T,​V>
    Enclosing class:
    Functions

    private static final class Functions.DefaultFunction<T,​V>
    extends java.lang.Object
    implements Function<T,​V>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DefaultFunction​(Function<? super T,​? extends V> newFunction, V newDefaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V valueOf​(T anObject)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface org.eclipse.collections.api.block.function.Function

        apply
    • Field Detail

      • function

        private final Function<? super T,​? extends V> function
      • defaultValue

        private final V defaultValue
    • Constructor Detail

      • DefaultFunction

        private DefaultFunction​(Function<? super T,​? extends V> newFunction,
                                V newDefaultValue)
    • Method Detail

      • valueOf

        public V valueOf​(T anObject)
        Specified by:
        valueOf in interface Function<T,​V>