Class Diff<T>
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.lang3.tuple.Pair<T,T>
edu.internet2.middleware.grouperClientExt.org.apache.commons.lang3.builder.Diff<T>
- Type Parameters:
T
- The type of object contained within thisDiff
. Differences between primitive objects are stored as their Object wrapper equivalent.
- All Implemented Interfaces:
Serializable
,Comparable<Pair<T,
,T>> Map.Entry<T,
T>
A Diff
contains the differences between two Diffable
class
fields.
Typically, Diff
s are retrieved by using a DiffBuilder
to
produce a DiffResult
, containing the differences between two objects.
- Since:
- 3.3
- See Also:
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.lang3.tuple.Pair
EMPTY_ARRAY
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Diff
Constructs a new
Diff
for the given field name.- Parameters:
fieldName
- the name of the field
-
-
Method Details
-
getType
Returns the type of the field.
- Returns:
- the field type
-
getFieldName
Returns the name of the field.
- Returns:
- the field name
-
toString
Returns a
String
representation of theDiff
, with the following format:[fieldname: left-value, right-value]
-
setValue
Throws
UnsupportedOperationException
.- Parameters:
value
- ignored- Returns:
- nothing
-