Package io.permazen.change
Class SetFieldAdd<T,E> 
java.lang.Object
io.permazen.change.Change<T>
io.permazen.change.FieldChange<T>
io.permazen.change.SetFieldChange<T>
io.permazen.change.SetFieldAdd<T,E> 
- Type Parameters:
- T- the type of the object containing the changed field
- E- the type of the changed set's elements
Notification object that gets passed to 
@OnChange-annotated methods
 when an element is added to a set field.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(PermazenTransaction jtx, PermazenObject jobj) Apply this change to the given object in the given transaction.booleanGet the element that was added to the set.inthashCode()toString()<R> Rvisit(ChangeSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.change.FieldChangegetFieldName
- 
Constructor Details- 
SetFieldAddConstructor.- Parameters:
- jobj- Java object containing the set field that changed
- fieldName- the name of the field that changed
- element- the element that was added
- Throws:
- IllegalArgumentException- if- jobjor- fieldNameis null
 
 
- 
- 
Method Details- 
visitDescription copied from class:ChangeApply visitor pattern. Invokes the method oftargetcorresponding to this instance's type.
- 
applyDescription copied from class:ChangeApply this change to the given object in the given transaction.
- 
getElementGet the element that was added to the set.- Returns:
- the newly added value
 
- 
equals- Overrides:
- equalsin class- FieldChange<T>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- FieldChange<T>
 
- 
toString
 
-