Class Unset

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.Object>

    public class Unset
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Object>
    Always yields the VALUE.unset value, which signals to any consumers that the value provided should be considered undefined for any operation. This is distinct from functions which return a null, which is considered an actual value to be acted upon. It is deemed an error for any downstream user of this library to do anything with VALUE.unset besides explicitly acting like it wasn't provided. That is the point of VALUE.unset. The purpose of having such a value in this library is to provide a value type to help bridge between functional flows and imperative run-times. Without such a value, it would be difficult to simulate value streams in which some of the time values are set and other times they are not.
    • Constructor Summary

      Constructors 
      Constructor Description
      Unset()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Object apply​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Unset

        public Unset()
    • Method Detail

      • apply

        public java.lang.Object apply​(long value)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.Object>