public class SimpleEqualityNodeWrapper
extends info.magnolia.jcr.wrapper.DelegateNodeWrapper
DelegateNodeWrapper
which simply defines equals() and hashCode() methods
based on the node's identifier.
Identifier is cached, so that equals() and hashCode() will work even if the node's JCR session was terminated.Constructor and Description |
---|
SimpleEqualityNodeWrapper(javax.jcr.Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getIdentifier() |
int |
hashCode() |
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNodes, getNodes, getNodes, getParent, getPath, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, getWrappedNode, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, isWrapping, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setWrappedNode, toString, unlock, update
public String getIdentifier()
getIdentifier
in interface javax.jcr.Node
getIdentifier
in class info.magnolia.jcr.wrapper.DelegateNodeWrapper
Copyright © 2019 Magnolia International Ltd.. All rights reserved.