com.kuka.common.params
Class AbstractIntegerParameter

java.lang.Object
  extended by com.kuka.common.params.AbstractIntegerParameter
All Implemented Interfaces:
IParameter<Integer>

public abstract class AbstractIntegerParameter
extends Object
implements IParameter<Integer>

Represents a parameter with a Integer 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.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
AbstractIntegerParameter(int value)
          Creates a new value instance of this parameter.
 
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.
 int intValue()
          Returns the primitive int value of this parameter.
 Integer 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

AbstractIntegerParameter

public AbstractIntegerParameter(int value)
Creates a new value instance of this parameter.

Parameters:
value - the parameter value
Method Detail

intValue

public final int intValue()
Returns the primitive int value of this parameter.

Returns:
the primitive int value of this parameter

value

public final Integer value()
Description copied from interface: IParameter
Returns the value of this parameter.

Specified by:
value in interface IParameter<Integer>
Returns:
the value of this parameter

hashCode

public final int hashCode()
Returns the hash code for this parameter value.

Overrides:
hashCode in class Object
Returns:
the hash code for this parameter value

equals

public final boolean equals(Object obj)
Compares the given object for equality with this one.

Overrides:
equals in class Object
Parameters:
obj - the object to be compared to this one
Returns:
true, if the type of the other object is exactly the same as the type of this object and it's value is equal to this object's value.
See Also:
Object.equals(Object), Object.getClass()


Copyright © 2019. All rights reserved.