@groovy.transform.CompileStatic @groovy.transform.EqualsAndHashCode @groovy.transform.ToString(includePackage: false) class CompositeKey extends java.lang.Object
Wrapper for composite (multi-part) keys to ensure proper equality semantics. When grouping or joining by multiple fields, this class wraps the list of key parts to provide correct hashCode and equals behavior for use in hash-based collections.
| Type | Name and description |
|---|---|
java.util.List<java.lang.Object> |
partsThe list of key parts that make up this composite key |
| Constructor and description |
|---|
CompositeKey(java.util.List<java.lang.Object> parts)Create a composite key from a list of parts |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait() |
The list of key parts that make up this composite key
Groovy Documentation