@Immutable public static class

ModuleDescriptors.EqualsBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.util.ModuleDescriptors.EqualsBuilder

Class Overview

Assists in implementing a consistent implementation of equals(Object) methods for module descriptors based on the descriptor's complete key.

Summary

Public Constructors
ModuleDescriptors.EqualsBuilder(ModuleDescriptor descriptor)
Creates an instance of the EqualsBuilder for a module descriptor.
Public Methods
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 getCompleteKey().

[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ModuleDescriptors.EqualsBuilder (ModuleDescriptor descriptor)

Creates an instance of the EqualsBuilder for a module descriptor.

Parameters
descriptor the module descriptor to create an equals implementation for.

Public Methods

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 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.