org.apache.velocity.test.provider
Class TestNumber

java.lang.Object
  extended by org.apache.velocity.test.provider.TestNumber
All Implemented Interfaces:
org.apache.velocity.util.TemplateNumber

public class TestNumber
extends Object
implements org.apache.velocity.util.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()
           
 
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()
Specified by:
getAsNumber in interface org.apache.velocity.util.TemplateNumber


Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.