T - the type of the object containing the changed fieldE - the type of the changed set's elementspublic class SetFieldRemove<T,E> extends SetFieldChange<T>
@OnChange-annotated methods
when an element is removed from a set field.| Constructor and Description |
|---|
SetFieldRemove(T jobj,
int storageId,
String fieldName,
E element)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(JTransaction jtx,
JObject jobj)
Apply this change to the given object in the given transaction.
|
boolean |
equals(Object obj) |
E |
getElement()
Get the element that was removed from the set.
|
int |
hashCode() |
String |
toString() |
<R> R |
visit(ChangeSwitch<R> target)
Apply visitor pattern.
|
getFieldName, getStorageIdpublic SetFieldRemove(T jobj, int storageId, String fieldName, E element)
jobj - Java object containing the set field that changedstorageId - the storage ID of the affected fieldfieldName - the name of the field that changedelement - the element that was removedIllegalArgumentException - if jobj or fieldName is nullpublic <R> R visit(ChangeSwitch<R> target)
Changetarget corresponding to this instance's type.public void apply(JTransaction jtx, JObject jobj)
Changepublic E getElement()
public boolean equals(Object obj)
equals in class FieldChange<T>public int hashCode()
hashCode in class FieldChange<T>Copyright © 2017. All rights reserved.