public abstract class NumberData extends PrimitiveData
Important: This class may only be used in implementing plugins (e.g. functions, directives).
Important: Even though this class is not marked 'final', do not extend this class.
| Constructor and Description |
|---|
NumberData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares this value against another for equality in the sense of the '==' operator of Soy.
|
int |
hashCode() |
double |
numberValue()
Precondition: Only call this method if you know that this SoyValue object is a number.
|
abstract double |
toFloat()
Gets the float value of this number data object.
|
rendercreateFromExistingDatabooleanValue, floatValue, integerValue, longValue, render, renderAndResolve, resolve, status, stringValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcoerceToBoolean, coerceToStringpublic abstract double toFloat()
public double numberValue()
SoyValuenumberValue in interface SoyValuenumberValue in class SoyAbstractValuepublic boolean equals(Object other)
SoyValueequals in interface SoyValueequals in class SoyAbstractValueother - The other value to compare against.