Package io.permazen.change
Class SetFieldRemove<T,E>
java.lang.Object
io.permazen.change.Change<T>
io.permazen.change.FieldChange<T>
io.permazen.change.SetFieldChange<T>
io.permazen.change.SetFieldRemove<T,E>
- Type Parameters:
T- the type of the object containing the changed fieldE- the type of the changed set's elements
Notification object that gets passed to
@OnChange-annotated methods
when an element is removed from a set field.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PermazenTransaction jtx, PermazenObject jobj) Apply this change to the given object in the given transaction.booleanGet the element that was removed from the set.inthashCode()toString()<R> Rvisit(ChangeSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.change.FieldChange
getFieldName
-
Constructor Details
-
SetFieldRemove
Constructor.- Parameters:
jobj- Java object containing the set field that changedfieldName- the name of the field that changedelement- the element that was removed- Throws:
IllegalArgumentException- ifjobjorfieldNameis null
-
-
Method Details
-
visit
Description copied from class:ChangeApply visitor pattern. Invokes the method oftargetcorresponding to this instance's type. -
apply
Description copied from class:ChangeApply this change to the given object in the given transaction. -
getElement
Get the element that was removed from the set.- Returns:
- the value removed from the set
-
equals
- Overrides:
equalsin classFieldChange<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classFieldChange<T>
-
toString
-