java.lang.Object | |
↳ | com.atlassian.plugin.descriptors.ModuleDescriptors.HashCodeBuilder |
Assists in implementing hashCode()
methods for module descriptors based on the hashCode
of their complete key.
The full specification of the hashCode() contract is defined by
hashCode()
Usage:
new ModuleDescriptors.HashCodeBuilder().descriptor(this).toHashCode();
new ModuleDescriptors.EqualsBuilder().descriptor(desc).toHashCode();
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the module descriptor to create a
hashCode implementation for. | |||||||||||
The computed
hashCode from toHashCode() is returned due to the likelihood
of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode for
HashCodeBuilder itself is. | |||||||||||
Return the computed
hashCode for this module descriptor. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Sets the module descriptor to create a hashCode
implementation for.
descriptor | the descriptor. Must not be null. |
---|
The computed hashCode
from toHashCode() is returned due to the likelihood
of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode for
HashCodeBuilder itself is.
hashCode
based on the complete key of the module descriptor.
Return the computed hashCode
for this module descriptor.
hashCode
based on the hashCode of the complete key of the module descriptor.