@Override public int hashCode() { // This achieves the same as Objects.hashcode, but avoids the object array allocation // which features significantly in the allocation profile and caches the result. int result = hash; if(result == 0) { result = 31 + (ksName == null ? 0 : ksName.hashCode()); result = 31 * result + (cfName == null ? 0 : cfName.hashCode()); result = 31 * result + (name == null ? 0 : name.hashCode()); result = 31 * result + (type == null ? 0 : type.hashCode()); result = 31 * result + (kind == null ? 0 : kind.hashCode()); result = 31 * result + position; hash = result; } return result; }
@Override public int hashCode() { // This achieves the same as Objects.hashcode, but avoids the object array allocation // which features significantly in the allocation profile and caches the result. int result = hash; if(result == 0) { result = 31 + (ksName == null ? 0 : ksName.hashCode()); result = 31 * result + (cfName == null ? 0 : cfName.hashCode()); result = 31 * result + (name == null ? 0 : name.hashCode()); result = 31 * result + (type == null ? 0 : type.hashCode()); result = 31 * result + (kind == null ? 0 : kind.hashCode()); result = 31 * result + position; hash = result; } return result; }
@Override public int hashCode() { // This achieves the same as Objects.hashcode, but avoids the object array allocation // which features significantly in the allocation profile and caches the result. int result = hash; if(result == 0) { result = 31 + (ksName == null ? 0 : ksName.hashCode()); result = 31 * result + (cfName == null ? 0 : cfName.hashCode()); result = 31 * result + (name == null ? 0 : name.hashCode()); result = 31 * result + (type == null ? 0 : type.hashCode()); result = 31 * result + (kind == null ? 0 : kind.hashCode()); result = 31 * result + position; hash = result; } return result; }
@Override public int hashCode() { // This achieves the same as Objects.hashcode, but avoids the object array allocation // which features significantly in the allocation profile and caches the result. int result = hash; if(result == 0) { result = 31 + (ksName == null ? 0 : ksName.hashCode()); result = 31 * result + (cfName == null ? 0 : cfName.hashCode()); result = 31 * result + (name == null ? 0 : name.hashCode()); result = 31 * result + (type == null ? 0 : type.hashCode()); result = 31 * result + (kind == null ? 0 : kind.hashCode()); result = 31 * result + position; hash = result; } return result; }