org.eclipse.ocl.examples.domain.values
Class Unlimited

java.lang.Object
  extended by java.lang.Number
      extended by org.eclipse.ocl.examples.domain.values.Unlimited
All Implemented Interfaces:
java.io.Serializable

public class Unlimited
extends java.lang.Number

Unlimited represents the unlimited value as a distinct java.lang.Number derived class that can be identified by instanceof.

See Also:
Serialized Form

Field Summary
static Unlimited INSTANCE
           
 
Method Summary
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static Unlimited INSTANCE
Method Detail

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object