net.dpml.station.info
Class AbstractDescriptor

java.lang.Object
  extended bynet.dpml.station.info.AbstractDescriptor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RegistryDescriptor

public abstract class AbstractDescriptor
extends Object
implements Serializable

The AbstractDescriptor class is an abstract base class for descriptors.

Version:
1.0.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
AbstractDescriptor()
           
 
Method Summary
 boolean equals(Object other)
          Compare this object to the supplied object for equality.
protected  boolean equals(Object a, Object b)
          Utility to compare two object for equality.
protected  int hashArray(Object[] array)
          Utility to hash an array.
 int hashCode()
          Calculate the hashcode.
protected  int hashValue(Object value)
          Utility to hash an object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDescriptor

public AbstractDescriptor()
Method Detail

equals

public boolean equals(Object other)
Compare this object to the supplied object for equality.

Parameters:
other - the other object
Returns:
true if equal

hashCode

public int hashCode()
Calculate the hashcode.

Returns:
the hashcode value

hashArray

protected int hashArray(Object[] array)
Utility to hash an array.

Parameters:
array - the array
Returns:
the hash value

hashValue

protected int hashValue(Object value)
Utility to hash an object.

Parameters:
value - the object
Returns:
the hash value

equals

protected boolean equals(Object a,
                         Object b)
Utility to compare two object for equality.

Parameters:
a - the first object
b - the second object
Returns:
true if the objects are equal