Package com.im.df.api.dml.calculated
Class DFWrappedValues
- java.lang.Object
-
- com.im.df.api.dml.calculated.DFWrappedValues
-
public final class DFWrappedValues extends java.lang.Object
Utility methods forwrapped values
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
getUnwrappedValue(java.lang.Object value)
If given value is instance ofDFWrappedValue
the method tries to unwrap the value and returns the result.static java.lang.Object
getValue(boolean unwrap, java.lang.Object value)
Ifunwrap
istrue
and given value is instance ofDFWrappedValue
the method tries to unwrap the value and returns the result.
-
-
-
Method Detail
-
getValue
public static java.lang.Object getValue(boolean unwrap, java.lang.Object value)
Ifunwrap
istrue
and given value is instance ofDFWrappedValue
the method tries to unwrap the value and returns the result. If unwrapping fails, problem is logged andnull
is returned. If the value is already unwrapped valued it is returned directly.- Parameters:
unwrap
- whether to unwrap possibly wrapped valuevalue
- possibly wrapped value- Returns:
- possibly unwrapped result
-
getUnwrappedValue
public static java.lang.Object getUnwrappedValue(java.lang.Object value)
If given value is instance ofDFWrappedValue
the method tries to unwrap the value and returns the result. If unwrapping fails, problem is logged andnull
is returned. If the value is already unwrapped valued it is returned directly.- Parameters:
value
- possibly wrapped value- Returns:
- possibly unwrapped result
-
-