Interface ChangeSwitch<R>
- Type Parameters:
R
- method return type
Change
class hierarchy.-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> R
caseChange
(Change<T> change) Visitor pattern roll-up method.default <T> R
caseFieldChange
(FieldChange<T> change) Visitor pattern roll-up method.default <T,
E> R caseListFieldAdd
(ListFieldAdd<T, E> change) Handle aListFieldAdd
event.default <T> R
caseListFieldChange
(ListFieldChange<T> change) Visitor pattern roll-up method.default <T> R
caseListFieldClear
(ListFieldClear<T> change) Handle aListFieldClear
event.default <T,
E> R caseListFieldRemove
(ListFieldRemove<T, E> change) Handle aListFieldRemove
event.default <T,
E> R caseListFieldReplace
(ListFieldReplace<T, E> change) Handle aListFieldReplace
event.default <T,
K, V> R caseMapFieldAdd
(MapFieldAdd<T, K, V> change) Handle aMapFieldAdd
event.default <T> R
caseMapFieldChange
(MapFieldChange<T> change) Visitor pattern roll-up method.default <T> R
caseMapFieldClear
(MapFieldClear<T> change) Handle aMapFieldClear
event.default <T,
K, V> R caseMapFieldRemove
(MapFieldRemove<T, K, V> change) Handle aMapFieldRemove
event.default <T,
K, V> R caseMapFieldReplace
(MapFieldReplace<T, K, V> change) Handle aMapFieldReplace
event.default <T> R
caseObjectCreate
(ObjectCreate<T> change) Handle anObjectCreate
event.default <T> R
caseObjectDelete
(ObjectDelete<T> change) Handle anObjectDelete
event.default <T,
E> R caseSetFieldAdd
(SetFieldAdd<T, E> change) Handle aSetFieldAdd
event.default <T> R
caseSetFieldChange
(SetFieldChange<T> change) Visitor pattern roll-up method.default <T> R
caseSetFieldClear
(SetFieldClear<T> change) Handle aSetFieldClear
event.default <T,
E> R caseSetFieldRemove
(SetFieldRemove<T, E> change) Handle aSetFieldRemove
event.default <T,
V> R caseSimpleFieldChange
(SimpleFieldChange<T, V> change) Handle aSimpleFieldChange
event.
-
Method Details
-
caseObjectCreate
Handle anObjectCreate
event.The implementation in
ChangeSwitch
delegates tocaseChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseObjectDelete
Handle anObjectDelete
event.The implementation in
ChangeSwitch
delegates tocaseChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseListFieldAdd
Handle aListFieldAdd
event.The implementation in
ChangeSwitch
delegates tocaseListFieldChange()
.- Type Parameters:
T
- changed object typeE
- changed list element type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseListFieldClear
Handle aListFieldClear
event.The implementation in
ChangeSwitch
delegates tocaseListFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseListFieldRemove
Handle aListFieldRemove
event.The implementation in
ChangeSwitch
delegates tocaseListFieldChange()
.- Type Parameters:
T
- changed object typeE
- changed list element type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseListFieldReplace
Handle aListFieldReplace
event.The implementation in
ChangeSwitch
delegates tocaseListFieldChange()
.- Type Parameters:
T
- changed object typeE
- changed list element type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseMapFieldAdd
Handle aMapFieldAdd
event.The implementation in
ChangeSwitch
delegates tocaseMapFieldChange()
.- Type Parameters:
T
- changed object typeK
- changed map key typeV
- changed map value type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseMapFieldClear
Handle aMapFieldClear
event.The implementation in
ChangeSwitch
delegates tocaseMapFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseMapFieldRemove
Handle aMapFieldRemove
event.The implementation in
ChangeSwitch
delegates tocaseMapFieldChange()
.- Type Parameters:
T
- changed object typeK
- changed map key typeV
- changed map value type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseMapFieldReplace
Handle aMapFieldReplace
event.The implementation in
ChangeSwitch
delegates tocaseMapFieldChange()
.- Type Parameters:
T
- changed object typeK
- changed map key typeV
- changed map value type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseSetFieldAdd
Handle aSetFieldAdd
event.The implementation in
ChangeSwitch
delegates tocaseSetFieldChange()
.- Type Parameters:
T
- changed object typeE
- changed set element type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseSetFieldClear
Handle aSetFieldClear
event.The implementation in
ChangeSwitch
delegates tocaseSetFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseSetFieldRemove
Handle aSetFieldRemove
event.The implementation in
ChangeSwitch
delegates tocaseSetFieldChange()
.- Type Parameters:
T
- changed object typeE
- changed set element type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseSimpleFieldChange
Handle aSimpleFieldChange
event.The implementation in
ChangeSwitch
delegates tocaseFieldChange()
.- Type Parameters:
T
- changed object typeV
- changed encoding- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseListFieldChange
Visitor pattern roll-up method.The implementation in
ChangeSwitch
delegates tocaseFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseMapFieldChange
Visitor pattern roll-up method.The implementation in
ChangeSwitch
delegates tocaseFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseSetFieldChange
Visitor pattern roll-up method.The implementation in
ChangeSwitch
delegates tocaseFieldChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseFieldChange
Visitor pattern roll-up method.The implementation in
ChangeSwitch
delegates tocaseChange()
.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-
caseChange
Visitor pattern roll-up method.The implementation in
ChangeSwitch
returns null.- Type Parameters:
T
- changed object type- Parameters:
change
- visiting change- Returns:
- visitor return value
-