com.kuka.common.params
Class AbstractLongParameter

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

public abstract class AbstractLongParameter
extends Object
implements IParameter<Long>

Represents a parameter with a Long 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
AbstractLongParameter(long value)
          Creates a new value instance of this parameter.
 
Method Summary
 long booleanValue()
          Returns the primitive long value of this parameter.
 boolean equals(Object obj)
          Compares the given object for equality with this one.
 int hashCode()
          Returns the hash code for this parameter value.
 Long 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

AbstractLongParameter

public AbstractLongParameter(long value)
Creates a new value instance of this parameter.

Parameters:
value - the parameter value
Method Detail

booleanValue

public final long booleanValue()
Returns the primitive long value of this parameter.

Returns:
the primitive long value of this parameter

value

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

Specified by:
value in interface IParameter<Long>
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.