@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((value == null) ? 0 : value.hashCode()); return result; }
/** * Casts to collection value. * * @return collection value. */ @SuppressWarnings("unchecked") @Override public <OV extends ClientValue> ClientCollectionValue<OV> asCollection() { return isCollection() ? (ClientCollectionValue<OV>) this : null; }
/** * Casts to complex value. * * @return complex value. */ @Override public ClientComplexValue asComplex() { return isComplex() ? (ClientComplexValue) this : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ClientCollectionValueImpl)) { return false; } ClientCollectionValueImpl<?> other = (ClientCollectionValueImpl<?>) obj; if (values == null) { if (other.values != null) { return false; } } else if (!values.equals(other.values)) { return false; } return true; }
@Override public String toString() { return "ClientComplexValueImpl [navigationLinks=" + navigationLinks + ", associationLinks=" + associationLinks + ", annotations=" + annotations + ", fields=" + fields + "super[" + super.toString() + "]]"; } }
/** * Casts to primitive value. * * @return primitive value. */ @Override public ClientPrimitiveValue asPrimitive() { return isPrimitive() ? (ClientPrimitiveValue) this : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ClientEnumValueImpl)) { return false; } ClientEnumValueImpl other = (ClientEnumValueImpl) obj; if (value == null) { if (other.value != null) { return false; } } else if (!value.equals(other.value)) { return false; } return true; } }
@Override public String toString() { return "ClientCollectionValueImpl [values=" + values + "super[" + super.toString() + "]]"; } }
/** * Casts to primitive value. * * @return primitive value. */ @Override public ClientPrimitiveValue asPrimitive() { return isPrimitive() ? (ClientPrimitiveValue) this : null; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((value == null) ? 0 : value.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ClientCollectionValueImpl)) { return false; } ClientCollectionValueImpl<?> other = (ClientCollectionValueImpl<?>) obj; if (values == null) { if (other.values != null) { return false; } } else if (!values.equals(other.values)) { return false; } return true; }
@Override public String toString() { return "ClientComplexValueImpl [navigationLinks=" + navigationLinks + ", associationLinks=" + associationLinks + ", annotations=" + annotations + ", fields=" + fields + "super[" + super.toString() + "]]"; } }
/** * Casts to complex value. * * @return complex value. */ @Override public ClientComplexValue asComplex() { return isComplex() ? (ClientComplexValue) this : null; }
/** * Casts to collection value. * * @return collection value. */ @SuppressWarnings("unchecked") @Override public <OV extends ClientValue> ClientCollectionValue<OV> asCollection() { return isCollection() ? (ClientCollectionValue<OV>) this : null; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (values.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ClientEnumValueImpl)) { return false; } ClientEnumValueImpl other = (ClientEnumValueImpl) obj; if (value == null) { if (other.value != null) { return false; } } else if (!value.equals(other.value)) { return false; } return true; } }
@Override public String toString() { return "ClientCollectionValueImpl [values=" + values + "super[" + super.toString() + "]]"; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (values.hashCode()); return result; }
return true; if (!super.equals(obj)) { return false;
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (annotations.hashCode()); result = prime * result + (associationLinks.hashCode()); result = prime * result + (fields.hashCode()); result = prime * result + (navigationLinks.hashCode()); return result; }