@Override public int hashCode() { return this.regionEntry.getKey().hashCode(); }
@Override public int hashCode() { return this.regionEntry.getKey().hashCode(); }
public Object setUserAttribute(Object value) { checkEntryDestroyed(); if (region.entryUserAttributes == null) { region.entryUserAttributes = new Hashtable(); } return region.entryUserAttributes.put(this.regionEntry .getKey(), value); }
public Object getUserAttribute() { checkEntryDestroyed(); Map userAttr = region.entryUserAttributes; if (userAttr == null) { return null; } return userAttr.get(this.regionEntry.getKey()); }
public Object getKey() { checkEntryDestroyed(); return regionEntry.getKey(); }
public Object getUserAttribute() { checkEntryDestroyed(); Map userAttr = region.entryUserAttributes; if (userAttr == null) { return null; } return userAttr.get(this.regionEntry.getKey()); }
@Override public boolean equals(Object obj) { if (!(obj instanceof EntrySnapshot)) { return false; } EntrySnapshot ent = (EntrySnapshot)obj; return this.regionEntry.getKey().equals(ent.getKey()); }
@Override public boolean equals(Object obj) { if (!(obj instanceof EntrySnapshot)) { return false; } EntrySnapshot ent = (EntrySnapshot)obj; return this.regionEntry.getKey().equals(ent.getKey()); }
public Object setUserAttribute(Object value) { checkEntryDestroyed(); if (this.region.isTX()) { throw new UnsupportedOperationException( LocalizedStrings.TXEntry_UA_NOT_SUPPORTED.toLocalizedString()); } if (region.entryUserAttributes == null) { region.entryUserAttributes = new Hashtable(); } return region.entryUserAttributes.put(this.regionEntry .getKey(), value); }
@Override public String toString() { if (this.isDestroyed()) { return "EntrySnapshot(#destroyed#" + regionEntry.getKey() + "; version=" + this.getVersionTag() + ")"; } else { return "EntrySnapshot(" + this.regionEntry + ")"; } }