Code example for SoftLock

Methods: equals

0
 
		/** 
		 * {@inheritDoc} 
		 */ 
		public boolean isUnlockable(SoftLock lock) { 
			return equals( lock ); 
		} 
 
		/** 
		 * {@inheritDoc} 
		 */ 
		@Override 
		public boolean equals(Object o) { 
			if ( o == this ) { 
				return true; 
			} 
			else if ( o instanceof Lock ) { 
				return ( lockId == ( (Lock) o ).lockId ) && sourceUuid.equals( ( (Lock) o ).sourceUuid ); 
			} 
			else {