@Immutable public static class ModuleDescriptors.HashCodeBuilder extends Object
Object.hashCode()
methods for module descriptors based on the hashCode
of the descriptor's complete key.Constructor and Description |
---|
HashCodeBuilder(com.atlassian.plugin.ModuleDescriptor descriptor)
Creates an instance of the
HashCodeBuilder for a module descriptor. |
Modifier and Type | Method and Description |
---|---|
int |
hashCode()
The computed
hashCode from toHashCode() is returned due to the likelyhood
of bugs in mis-calling toHashCode() and the unlikelyness of it mattering what the hashCode for
HashCodeBuilder itself is. |
int |
toHashCode()
Return the computed
hashCode for this module descriptor. |
public HashCodeBuilder(com.atlassian.plugin.ModuleDescriptor descriptor)
HashCodeBuilder
for a module descriptor. Must not be null.descriptor
- the module descriptor to create a hashCode
implementation for.public int toHashCode()
hashCode
for this module descriptor.hashCode
based on the hashCode of the descriptor's complete key.public int hashCode()
hashCode
from toHashCode() is returned due to the likelyhood
of bugs in mis-calling toHashCode() and the unlikelyness of it mattering what the hashCode for
HashCodeBuilder itself is.Copyright © 2002-2021 Atlassian. All Rights Reserved.