T - the type of the object containing the changed fieldK - the type of the changed map's keyV - the type of the changed map's valuepublic class MapFieldRemove<T,K,V> extends MapFieldChange<T>
@OnChange-annotated methods
when a key/value pair is removed from a map field.| Constructor and Description |
|---|
MapFieldRemove(T jobj,
int storageId,
String fieldName,
K key,
V value)
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) |
K |
getKey()
Get the key of the key/value pair that was removed.
|
V |
getValue()
Get the value of the key/value pair that was removed.
|
int |
hashCode() |
String |
toString() |
<R> R |
visit(ChangeSwitch<R> target)
Apply visitor pattern.
|
getFieldName, getStorageIdpublic MapFieldRemove(T jobj, int storageId, String fieldName, K key, V value)
jobj - Java object containing the map field that changedstorageId - the storage ID of the affected fieldfieldName - the name of the field that changedkey - the key of the removed key/value pairvalue - the value of the removed key/value pairIllegalArgumentException - 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 K getKey()
public V getValue()
public boolean equals(Object obj)
equals in class FieldChange<T>public int hashCode()
hashCode in class FieldChange<T>Copyright © 2017. All rights reserved.