public override bool Equals(object o) { if (this == o) { return(true); } if (!(o is ActiveLock)) { return(false); } ActiveLock that = ( ActiveLock )o; return(ResourceIdConflict == that.ResourceId() && Objects.Equals(Mode(), that.Mode()) && Objects.Equals(ResourceTypeConflict, that.ResourceType())); }
private bool IsBlocked(ActiveLock activeLock, IList <ActiveLock> activeLocks) { return(Org.Neo4j.Kernel.impl.locking.ActiveLock_Fields.EXCLUSIVE_MODE.Equals(activeLock.Mode()) ? HaveAnyLocking(activeLocks, activeLock.ResourceType(), activeLock.ResourceId()) : HaveExclusiveLocking(activeLocks, activeLock.ResourceType(), activeLock.ResourceId())); }