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.ObjectUtility methods forwrapped values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetUnwrappedValue(java.lang.Object value)If given value is instance ofDFWrappedValuethe method tries to unwrap the value and returns the result.static java.lang.ObjectgetValue(boolean unwrap, java.lang.Object value)Ifunwrapistrueand given value is instance ofDFWrappedValuethe 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)Ifunwrapistrueand given value is instance ofDFWrappedValuethe method tries to unwrap the value and returns the result. If unwrapping fails, problem is logged andnullis 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 ofDFWrappedValuethe method tries to unwrap the value and returns the result. If unwrapping fails, problem is logged andnullis returned. If the value is already unwrapped valued it is returned directly.- Parameters:
value- possibly wrapped value- Returns:
- possibly unwrapped result
-
-