org.apache.velocity.test.provider
Class TestNumber
java.lang.Object
org.apache.velocity.test.provider.TestNumber
- All Implemented Interfaces:
- TemplateNumber
public class TestNumber
- extends Object
- implements TemplateNumber
Used for testing purposes to check that an object implementing TemplateNumber
will be treated as a Number.
- Author:
- Will Glass-Husain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestNumber
public TestNumber(double val)
getAsNumber
public Number getAsNumber()
- Description copied from interface:
TemplateNumber
- Returns a Number that can be used in a template.
- Specified by:
getAsNumber
in interface TemplateNumber
Copyright © 2002 Apache Software Foundation. All Rights Reserved.