com.atlassian.jira.plugin.util
Class ModuleDescriptors.EqualsBuilder

java.lang.Object
  extended by 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
ModuleDescriptors.EqualsBuilder(com.atlassian.plugin.ModuleDescriptor descriptor)
          Creates an instance of the EqualsBuilder for a module descriptor.
 
Method Summary
 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().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleDescriptors.EqualsBuilder

public ModuleDescriptors.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 Detail

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.


Copyright © 2002-2013 Atlassian. All Rights Reserved.