java.lang.Object
org.microbean.lang.Equality
- All Implemented Interfaces:
Constable
- Direct Known Subclasses:
SameTypeEquality
Provides determinate hashcode and equality calculations chiefly for
javax.lang.model
implementations.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional
<DynamicConstantDesc<? extends Equality>> boolean
static final boolean
static final boolean
equalsIncludingAnnotations
(Object o1, Object o2) static final boolean
int
static final int
static final int
static final int
final boolean
-
Constructor Details
-
Equality
public Equality(boolean includeAnnotations) Creates a newEquality
.- Parameters:
includeAnnotations
- whether annotations on objects should be taken into consideration while performing hashcode and equality operations- See Also:
-
-
Method Details
-
includeAnnotations
public final boolean includeAnnotations() -
describeConstable
- Specified by:
describeConstable
in interfaceConstable
-
hashCode
-
equals
-
hashCodeIncludingAnnotations
-
hashCodeNotIncludingAnnotations
-
hashCode
-
equalsIncludingAnnotations
-
equalsNotIncludingAnnotations
-
equals
-