Class Functions.NullSafeFunction<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.NullSafeFunction<T,​V>
    extends java.lang.Object
    implements Function<T,​V>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NullSafeFunction​(Function<? super T,​? extends V> function, V nullValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V valueOf​(T object)  
      • 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
      • nullValue

        private final V nullValue
    • Constructor Detail

      • NullSafeFunction

        private NullSafeFunction​(Function<? super T,​? extends V> function,
                                 V nullValue)
    • Method Detail

      • valueOf

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