public void changeContext(CONTEXT oldContext, CONTEXT newContext) { if (ObjectUtil.equals(context, oldContext)) { context = newContext; } }
public static boolean isEmpty(String str) { return ObjectUtil.isEmpty(str); }
public boolean canObtainWriteLock(CONTEXT context) { return ObjectUtil.equals(this.context, context); }
if (!ObjectUtil.isEmpty(newPackageUnits))
public boolean isWriteLock(CONTEXT context) { return ObjectUtil.equals(this.context, context); }
@Override public int hashCode() { return ObjectUtil.hashCode(sessionID, viewID); }
public boolean canObtainReadLock(CONTEXT context) { return ObjectUtil.equals(this.context, context); }
protected boolean equals(T v1, T v2) { return ObjectUtil.equals(v1, v2); }
public boolean hasContext(CONTEXT context) { return ObjectUtil.equals(this.context, context); }
@Override public int hashCode() { return ObjectUtil.hashCode(sessionID, viewID); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof ElementKey) { ElementKey key = (ElementKey)obj; return ObjectUtil.equals(productGroup, key.productGroup) && ObjectUtil.equals(factoryType, key.factoryType) && ObjectUtil.equals(description, key.description); } return false; }
@Override public int hashCode() { return getClass().hashCode() ^ ObjectUtil.hashCode(value); }
/** * @since 2.0 */ public static boolean equals(CDOID id1, CDOID id2) { if (id1 == null) { id1 = CDOID.NULL; } if (id2 == null) { id2 = CDOID.NULL; } return ObjectUtil.equals(id1, id2); } }
@Override public int hashCode() { return getClass().hashCode() ^ ObjectUtil.hashCode(value); }