org.apache.velocity.test.provider
Class TestNumber

java.lang.Object
  extended by 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

Constructor Summary
TestNumber(double val)
           
 
Method Summary
 Number getAsNumber()
          Returns a Number that can be used in a template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNumber

public TestNumber(double val)
Method Detail

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.