- java.lang.Object
-
- com.remondis.remap.MappedResult
-
public class MappedResult extends Object
Represents a field value mapping result. This result carries the actual value to write to the destination object and an operation flag indicating situations where a value,nullor nothing should be written to destination.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingOperationgetOperation()ObjectgetValue()booleanhasValue()static MappedResultskip()StringtoString()static MappedResultvalue(Object value)
-
-
-
Method Detail
-
skip
public static MappedResult skip()
- Returns:
- Returns a
MappedResultthat signals that the mapping should be skipped.
-
value
public static MappedResult value(Object value)
- Parameters:
value- The actual value the mapping returns.- Returns:
- Returns a
MappedResultthat signals that the mapping should be used even ifnullis returned.
-
getValue
public Object getValue()
-
getOperation
public MappingOperation getOperation()
-
hasValue
public boolean hasValue()
- Returns:
- Returns
trueif a mapped value is present.
-
-