Class AbstractMapChangeModel<K,V>
java.lang.Object
com.blazebit.persistence.view.impl.change.AbstractChangeModel<C,V>
com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel<Map<K,V>,V,MapDirtyChecker<Map<K,V>,K,V>>
com.blazebit.persistence.view.impl.change.AbstractMapChangeModel<K,V>
- All Implemented Interfaces:
ChangeModel<Map<K,V>>
,MapChangeModel<K,V>
,PluralChangeModel<Map<K,V>,V>
- Direct Known Subclasses:
MapChangeModelImpl
public abstract class AbstractMapChangeModel<K,V> extends AbstractPluralChangeModel<Map<K,V>,V,MapDirtyChecker<Map<K,V>,K,V>> implements MapChangeModel<K,V>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.change.ChangeModel
ChangeModel.ChangeKind
-
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel
current, initial, pluralDirtyChecker
Fields inherited from class com.blazebit.persistence.view.impl.change.AbstractChangeModel
basicType, type
-
Constructor Summary
Constructors Constructor Description AbstractMapChangeModel(ManagedViewTypeImplementor<K> keyType, BasicTypeImpl<K> keyBasicType, ManagedViewTypeImplementor<V> type, BasicTypeImpl<V> basicType, Map<K,V> initial, Map<K,V> current, MapDirtyChecker<Map<K,V>,K,V> pluralDirtyChecker)
-
Method Summary
Methods inherited from class com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel
get, get, get, get, get, get, get, getCurrentState, getInitialState, getKind, getObjectChangeModel, isDirty
Methods inherited from class com.blazebit.persistence.view.impl.change.AbstractChangeModel
equals, get, getAll, getAllImmutable, getAttribute, getChangeModel, getChangeModel, getChangeModelList, getDirtyChanges, getEmptyChangeModel, getEmptyChangeModel, getImmutableChangeModel, getImmutableChangeModel, getImmutableChangeModelList, getMutableAttribute, getType, hashCode, isChanged, isDirty, validateAttributePath
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blazebit.persistence.view.change.ChangeModel
getCurrentState, getInitialState, getKind, isDirty
-
Constructor Details
-
AbstractMapChangeModel
public AbstractMapChangeModel(ManagedViewTypeImplementor<K> keyType, BasicTypeImpl<K> keyBasicType, ManagedViewTypeImplementor<V> type, BasicTypeImpl<V> basicType, Map<K,V> initial, Map<K,V> current, MapDirtyChecker<Map<K,V>,K,V> pluralDirtyChecker)
-
-
Method Details
-
getElementChanges
- Specified by:
getElementChanges
in interfacePluralChangeModel<K,V>
-
getAddedElements
- Specified by:
getAddedElements
in interfacePluralChangeModel<K,V>
-
getRemovedElements
- Specified by:
getRemovedElements
in interfacePluralChangeModel<K,V>
-
getMutatedElements
- Specified by:
getMutatedElements
in interfacePluralChangeModel<K,V>
-
getKeyChanges
- Specified by:
getKeyChanges
in interfaceMapChangeModel<K,V>
-
getAddedKeys
- Specified by:
getAddedKeys
in interfaceMapChangeModel<K,V>
-
getRemovedKeys
- Specified by:
getRemovedKeys
in interfaceMapChangeModel<K,V>
-
getMutatedKeys
- Specified by:
getMutatedKeys
in interfaceMapChangeModel<K,V>
-
getObjectChanges
- Specified by:
getObjectChanges
in interfaceMapChangeModel<K,V>
-
getAddedObjects
- Specified by:
getAddedObjects
in interfaceMapChangeModel<K,V>
-
getRemovedObjects
- Specified by:
getRemovedObjects
in interfaceMapChangeModel<K,V>
-
getMutatedObjects
- Specified by:
getMutatedObjects
in interfaceMapChangeModel<K,V>
-
isDirty
- Specified by:
isDirty
in interfacePluralChangeModel<K,V>
-
isChanged
- Specified by:
isChanged
in interfacePluralChangeModel<K,V>
-
isKeyDirty
- Specified by:
isKeyDirty
in interfaceMapChangeModel<K,V>
-
isKeyChanged
- Specified by:
isKeyChanged
in interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
keyGet
public <E, C extends Collection<E>> List<PluralChangeModel<C,E>> keyGet(PluralAttribute<K,C,E> attribute)- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
keyGet
public <E, C extends Collection<E>> List<PluralChangeModel<C,E>> keyGet(MethodPluralAttribute<K,C,E> attribute)- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
getMutableKeyAttribute
-
get
- Specified by:
get
in interfacePluralChangeModel<K,V>
-
keyGet
- Specified by:
keyGet
in interfaceMapChangeModel<K,V>
-
getAll
-
keyGetAll
protected final <X> List<? extends ChangeModel<X>> keyGetAll(AbstractMethodAttribute<?,?> methodAttribute)
-