|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.source.xbmc.expression.Value
org.stanwood.media.source.xbmc.expression.IntegerValue
public class IntegerValue
Used to store integer values for the ExpressionEval
Constructor Summary | |
---|---|
IntegerValue(ValueType type,
java.lang.Integer value)
The constructor |
Method Summary | |
---|---|
Value |
addition(Value value)
Used to add this value to another value |
Value |
divide(Value value)
Used to divide this value with another value |
Value |
equals(Value value)
Used to perform a == operation between this value and the value in the
parameter |
Value |
greater(Value value)
Used to perform a > operation between this value and the value in the
parameter |
Value |
greaterEquals(Value value)
Used to perform a >= operation between this value and the value in the
parameter |
int |
intValue()
Get the value as a int |
Value |
less(Value value)
Used to perform a < operation between this value and the value in the
parameter |
Value |
lessEquals(Value value)
Used to perform a <= operation between this value and the value in the
parameter |
Value |
multiply(Value value)
Used to multiply this value with another value |
Value |
notequals(Value value)
Used to perform a != operation between this value and the value in the
parameter |
Value |
subtract(Value value)
Used to subtract the parameter value from this value |
java.lang.String |
toString()
|
Methods inherited from class org.stanwood.media.source.xbmc.expression.Value |
---|
and, getType, getValue, not, or, setType, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerValue(ValueType type, java.lang.Integer value)
type
- The typevalue
- the valueMethod Detail |
---|
public int intValue()
public Value addition(Value value) throws ExpressionParserException
addition
in class Value
value
- The value to add this value to
ExpressionParserException
- Thrown if their is a problem performing the operation.public Value divide(Value value) throws ExpressionParserException
divide
in class Value
value
- The value to divide this value by
ExpressionParserException
- Thrown if their is a problem performing the operation.public Value multiply(Value value) throws ExpressionParserException
multiply
in class Value
value
- The value to multiply this value by
ExpressionParserException
- Thrown if their is a problem performing the operation.public Value subtract(Value value) throws ExpressionParserException
subtract
in class Value
value
- The value to subtract
ExpressionParserException
- Thrown if not supported by this valuepublic java.lang.String toString()
toString
in class java.lang.Object
public Value notequals(Value value)
!=
operation between this value and the value in the
parameter
notequals
in class Value
value
- The value to perform the operation with
public Value equals(Value value)
==
operation between this value and the value in the
parameter
equals
in class Value
value
- The value to perform the operation with
public Value greater(Value value)
>
operation between this value and the value in the
parameter
greater
in class Value
value
- The value to perform the operation with
public Value greaterEquals(Value value)
>=
operation between this value and the value in the
parameter
greaterEquals
in class Value
value
- The value to perform the operation with
public Value less(Value value)
<
operation between this value and the value in the
parameter
less
in class Value
value
- The value to perform the operation with
public Value lessEquals(Value value)
<=
operation between this value and the value in the
parameter
lessEquals
in class Value
value
- The value to perform the operation with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |