net.dpml.lang
Class AbstractDirective

java.lang.Object
  extended by net.dpml.lang.AbstractDirective
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CacheDirective, Classpath, CodeBaseDirective, ComponentDirective, FilterDirective, HostDirective, Info, InfoDirective, ProxyDirective, TransitDirective, Type, ValueDirective

public abstract class AbstractDirective
extends Object
implements Serializable

Abstract directive base class.

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

Constructor Summary
AbstractDirective()
           
 
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

AbstractDirective

public AbstractDirective()
Method Detail

equals

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

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if equal

hashCode

public int hashCode()
Calculate the hashcode.

Overrides:
hashCode in class Object
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