|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.params.AbstractParameter<T>
T - type of the parameter value.public abstract class AbstractParameter<T>
Represents a parameter with a value. Subclasses of this type should not add
member variables that affect the notion of parameter equality. This
requirement is reflected by the fact that equals(Object) and
hashCode() are final.
| Constructor Summary | |
|---|---|
AbstractParameter()
Creates an instance of this parameter. |
|
AbstractParameter(T value)
Creates an instance of this parameter with the given parameter value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares the given object for equality with this one. |
int |
hashCode()
Returns the hash code for this parameter value. |
T |
value()
Returns the value of this parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractParameter(T value)
value - the parameter valuepublic AbstractParameter()
| Method Detail |
|---|
public final T value()
IParameter
value in interface IParameter<T>public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Objectobj - the object to be compared to this one
Object.equals(Object),
Object.getClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||