Index
All Classes and Interfaces|All Packages
D
- dk.cloudcreate.essentials.immutable - module dk.cloudcreate.essentials.immutable
- dk.cloudcreate.essentials.immutable - package dk.cloudcreate.essentials.immutable
- dk.cloudcreate.essentials.immutable.annotations - package dk.cloudcreate.essentials.immutable.annotations
E
- equals(Object) - Method in class dk.cloudcreate.essentials.immutable.ImmutableValueObject
-
The logic of
ImmutableValueObject.equals(Object)follows the standard approach where we don't accept subclasses of a type, we only accept the exact same type.
All fields without theExclude.EqualsAndHashCodeannotation with be included in the equals operation.
The fields are sorted alphabetically (ascending order) and values from the two objects being compared one by one.
As soon a difference in field values is identified the comparison is stopped (to avoid wasting CPU cycles) and the result is returned. - Exclude - Interface in dk.cloudcreate.essentials.immutable.annotations
- Exclude.EqualsAndHashCode - Annotation Interface in dk.cloudcreate.essentials.immutable.annotations
- Exclude.ToString - Annotation Interface in dk.cloudcreate.essentials.immutable.annotations
H
- hashCode() - Method in class dk.cloudcreate.essentials.immutable.ImmutableValueObject
-
All fields without the
Exclude.EqualsAndHashCodeannotation with be included the calculation of thehash-code.
The fields are sorted alphabetically (ascending order) and thehash-codewill be calculated in the order of the fields names.
The algorithm for calculating the hashcode follows the Objects#hash(Object...) method.
I
- Immutable - Interface in dk.cloudcreate.essentials.immutable
-
Marker interface that's shared by all immutable data types defined in this project, such as
ImmutableValueObject. - ImmutableValueObject - Class in dk.cloudcreate.essentials.immutable
-
The base type
ImmutableValueObjectsupports creating immutable (i.e. - ImmutableValueObject() - Constructor for class dk.cloudcreate.essentials.immutable.ImmutableValueObject
T
- toString() - Method in class dk.cloudcreate.essentials.immutable.ImmutableValueObject
-
All fields without the
Exclude.ToStringannotation with be included in the output.
The fields are sorted alphabetically (ascending order) and then grouped into fields with and without value.
We will first output non-null fields (in alphabetically order) and finally null fields (in alphabetically order)
Example:
All Classes and Interfaces|All Packages