Code example for Type

Methods: isEqual

0
		if ( !(other instanceof CacheKey) ) {
			return false; 
		} 
		CacheKey that = (CacheKey) other;
		return entityOrRoleName.equals( that.entityOrRoleName ) &&
				type.isEqual( key, that.key ) &&
				EqualsHelper.equals( tenantId, that.tenantId );
	} 
 
	@Override 
	public int hashCode() { 
		return hashCode;
	} 
 
	public Serializable getKey() {
		return key;
	} 
 
	public String getEntityOrRoleName() {
		return entityOrRoleName;