| | |
| | | */ |
| | | public final class Modification { |
| | | private final ModificationType modificationType; |
| | | |
| | | private final Attribute attribute; |
| | | |
| | | /** |
| | |
| | | * fully immutable: |
| | | * |
| | | * <pre> |
| | | * Modification change = new Modification(modificationType, Types.unmodifiableAttribute(attribute)); |
| | | * Modification change = new Modification(modificationType, Attributes |
| | | * .unmodifiableAttribute(attribute)); |
| | | * </pre> |
| | | * |
| | | * @param modificationType |
| | |
| | | */ |
| | | public Modification(final ModificationType modificationType, final Attribute attribute) { |
| | | Validator.ensureNotNull(modificationType, attribute); |
| | | |
| | | this.modificationType = modificationType; |
| | | this.attribute = attribute; |
| | | } |