vishnu.model.values
Class IntegerValue

java.lang.Object
  extended by vishnu.model.values.IntegerValue
All Implemented Interfaces:
java.io.Serializable, Value

public class IntegerValue
extends java.lang.Object
implements Value

Representa los valores enteros del motor.

Author:
Hernan Rancati
See Also:
Serialized Form
 

Field Summary
protected  int value
           
static IntegerValue Zero
           
 
Constructor Summary
IntegerValue()
          construye un valor entero nulo.
IntegerValue(int value)
          construye un valor entero a partir de value.
 
Method Summary
 int asInt()
          devuelve la representacion del valor entero como un int.
 boolean equals(java.lang.Object o)
           
 boolean equals(Value v)
           
 ValueClass getValueClass()
          retorna la clase de valor a la que pertener el valor.
 boolean greaterThan(Value v)
           
 boolean greaterThanOrEqual(Value v)
           
 int hashCode()
           
 boolean isNull()
           
 boolean lowerThan(Value v)
           
 boolean lowerThanOrEqual(Value v)
           
 java.lang.String toString()
           
 java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Zero

public static final IntegerValue Zero

value

protected int value
Constructor Detail

IntegerValue

public IntegerValue(int value)
construye un valor entero a partir de value.


IntegerValue

public IntegerValue()
construye un valor entero nulo.

Method Detail

asInt

public int asInt()
devuelve la representacion del valor entero como un int.


equals

public boolean equals(Value v)
Specified by:
equals in interface Value

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getValueClass

public ValueClass getValueClass()
Description copied from interface: Value
retorna la clase de valor a la que pertener el valor.

Specified by:
getValueClass in interface Value

toString

public java.lang.String toString()
Specified by:
toString in interface Value
Overrides:
toString in class java.lang.Object

greaterThan

public boolean greaterThan(Value v)
Specified by:
greaterThan in interface Value

greaterThanOrEqual

public boolean greaterThanOrEqual(Value v)
Specified by:
greaterThanOrEqual in interface Value

lowerThan

public boolean lowerThan(Value v)
Specified by:
lowerThan in interface Value

lowerThanOrEqual

public boolean lowerThanOrEqual(Value v)
Specified by:
lowerThanOrEqual in interface Value

isNull

public boolean isNull()
Specified by:
isNull in interface Value

value

public java.lang.Object value()
Specified by:
value in interface Value