public final class Modification extends Object
Constructor and Description |
---|
Modification(ModificationType modificationType,
Attribute attribute)
Creates a new modification having the provided modification type and
attribute values to be updated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Attribute |
getAttribute()
Returns the attribute containing the values to be modified.
|
ModificationType |
getModificationType()
Returns the type of modification to be performed.
|
int |
hashCode() |
String |
toString() |
public Modification(ModificationType modificationType, Attribute attribute)
Modification
is immutable, the underlying attribute may not be.
The following code ensures that the returned Modification
is
fully immutable:
Modification change = new Modification(modificationType, Attributes .unmodifiableAttribute(attribute));
modificationType
- The type of modification to be performed.attribute
- The the attribute containing the values to be modified.public Attribute getAttribute()
public ModificationType getModificationType()
Copyright 2011-2017 ForgeRock AS.