Class UnsetIfEmpty

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.String,​java.lang.Object>

    public class UnsetIfEmpty
    extends java.lang.Object
    implements java.util.function.Function<java.lang.String,​java.lang.Object>
    Yield VALUE.unset if the input String is empty. Throws an error if the input value is null. Otherwise, passes the original value along.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsetIfEmpty()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Object apply​(java.lang.String s)  
      • 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
    • Constructor Detail

      • UnsetIfEmpty

        public UnsetIfEmpty()
    • Method Detail

      • apply

        public java.lang.Object apply​(java.lang.String s)
        Specified by:
        apply in interface java.util.function.Function<java.lang.String,​java.lang.Object>