Interface Attributed
- All Known Implementing Classes:
Attributes
public interface Attributed
Something with affiliated
Attributes instances that further describe it.- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif and only if thisAttributedimplementation is equal to the suppliedObject, following the general contract ofObject.equals(Object)with additional requirements.inthashCode()Returns a hashcode for thisAttributedimplementation that is not based on the return value of an invocation of theattributes()method.
-
Method Details
-
attributes
- Returns:
- a non-
null, immutable, determinateListofAttributes
-
equals
Returnstrueif and only if thisAttributedimplementation is equal to the suppliedObject, following the general contract ofObject.equals(Object)with additional requirements.The return value of any invocation of the
attributes()method must not be factored into equality computations or undefined behavior may result.- Overrides:
equalsin classObject- Parameters:
other- theObjectto test; may benullin which casefalsewill be returned- Returns:
trueif and only if thisAttributedimplementation is equal to the suppliedObject- See Also:
-
hashCode
int hashCode()Returns a hashcode for thisAttributedimplementation that is not based on the return value of an invocation of theattributes()method.- Overrides:
hashCodein classObject- Returns:
- a hashcode for this
Attributed - See Also:
-