Class ModuleDescriptors.EqualsBuilder

java.lang.Object
com.atlassian.jira.plugin.util.ModuleDescriptors.EqualsBuilder
Enclosing class:
ModuleDescriptors

@Immutable public static class ModuleDescriptors.EqualsBuilder extends Object
Assists in implementing a consistent implementation of Object.equals(Object) methods for module descriptors based on the descriptor's complete key.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EqualsBuilder(com.atlassian.plugin.ModuleDescriptor descriptor)
    Creates an instance of the EqualsBuilder for a module descriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the given object is also a module descriptor and the two descriptors have the same "complete key" as determined by ModuleDescriptor.getCompleteKey().

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EqualsBuilder

      public EqualsBuilder(com.atlassian.plugin.ModuleDescriptor descriptor)
      Creates an instance of the EqualsBuilder for a module descriptor.
      Parameters:
      descriptor - the module descriptor to create an equals implementation for.
  • Method Details

    • isEqualsTo

      public boolean isEqualsTo(Object obj)

      Returns true if the given object is also a module descriptor and the two descriptors have the same "complete key" as determined by ModuleDescriptor.getCompleteKey().

      Parameters:
      obj - object to be compared for equality with this module descriptor.
      Returns:
      true if the specified object is equal to this module descriptor.