org.argkit
Class ArgumentDecorator<C>

java.lang.Object
  extended by org.argkit.Argument<C>
      extended by org.argkit.ArgumentDecorator<C>
Type Parameters:
C - (Argument's) claim class
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AcceptableArgument

public abstract class ArgumentDecorator<C>
extends Argument<C>

An Argument decorator class, for the convenience of developers.

Author:
Matt South
See Also:
Serialized Form

Field Summary
protected  Argument<C> argument
           
 
Constructor Summary
ArgumentDecorator(Argument<C> argument)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 C getClaim()
           
 int hashCode()
           
 void setClaim(C claim)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

argument

protected Argument<C> argument
Constructor Detail

ArgumentDecorator

public ArgumentDecorator(Argument<C> argument)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class Argument<C>

getClaim

public C getClaim()
Overrides:
getClaim in class Argument<C>

hashCode

public int hashCode()
Overrides:
hashCode in class Argument<C>

setClaim

public void setClaim(C claim)
Overrides:
setClaim in class Argument<C>

toString

public java.lang.String toString()
Overrides:
toString in class Argument<C>