Class UnsetIfEmpty
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_string.to_unset.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.Objectapply(java.lang.String s)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
UnsetIfEmpty
public UnsetIfEmpty()
-
-
Method Details
-
apply
public java.lang.Object apply(java.lang.String s)- Specified by:
applyin interfacejava.util.function.Function<java.lang.String,java.lang.Object>
-