java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
com.wyu4.snowberryjam.compiler.data.values.math.ArithmeticHolder
com.wyu4.snowberryjam.compiler.data.values.math.Round
Arithmetic Holder that rounds value A.
-
Constructor Summary
ConstructorsConstructorDescriptionRound(com.fasterxml.jackson.databind.JsonNode node) Create a new rounding operation -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.math.ArithmeticHolder
notEmptyMethods inherited from class com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
getA, getBMethods inherited from class com.wyu4.snowberryjam.compiler.data.values.ValueHolder
checkValueIsConditional, equals, fromNode, getArray, getPointer, getSize, getString, getType, isType, superEquals
-
Constructor Details
-
Round
public Round(com.fasterxml.jackson.databind.JsonNode node) Create a new rounding operation- Parameters:
node- TheJsonNodeto refer
-
-
Method Details
-
getValue
Description copied from class:ValueHolderGet the value being pointed to casted as anObject. The contents being returned by this method are mutable.- Overrides:
getValuein classArithmeticHolder- Returns:
- Value A rounded to the nearest unity
- Throws:
IllegalArgumentException- A is not numeric
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.ROUND
-
toString
- Overrides:
toStringin classArithmeticHolder
-