Package com.adobe.acs.commons.data
Class Variant
java.lang.Object
com.adobe.acs.commons.data.Variant
Used to represent values that might be provided as one baseType but used as
another. Avoids glue code and switch statements in other parts of the code
especially dealing with data from spreadsheets.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Variant
public Variant() -
Variant
public Variant(T src) -
Variant
public Variant(org.apache.poi.ss.usermodel.Cell src) -
Variant
-
-
Method Details
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
setValue
public final <T> void setValue(T val) -
toLong
-
toDouble
-
toString
-
toDate
-
toBoolean
-
isStringTruthy
Truthiness is any non-empty string that looks like a non-zero number or looks like it is True, Yes, or X- Parameters:
s- String to evaluate- Returns:
- True if it is truthy, otherwise false
-
asType
-
convert
-