Class NullIfWithin

  • All Implemented Interfaces:
    java.util.function.DoubleFunction<java.lang.Double>

    public class NullIfWithin
    extends java.lang.Object
    implements java.util.function.DoubleFunction<java.lang.Double>
    Yields a null if the input value is within the specified range, inclusive.
    • Constructor Summary

      Constructors 
      Constructor Description
      NullIfWithin​(double min, double max)  
    • Method Summary

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

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

      • NullIfWithin

        public NullIfWithin​(double min,
                            double max)
    • Method Detail

      • apply

        public java.lang.Double apply​(double value)
        Specified by:
        apply in interface java.util.function.DoubleFunction<java.lang.Double>