The Encog Project

org.encog.util.time
Class EnglishTimeUnitNames

java.lang.Object
  extended by org.encog.util.time.EnglishTimeUnitNames
All Implemented Interfaces:
TimeUnitNames

public class EnglishTimeUnitNames
extends java.lang.Object
implements TimeUnitNames

Class used to get the English names for TimeUnits.

Author:
jheaton

Constructor Summary
EnglishTimeUnitNames()
           
 
Method Summary
 java.lang.String code(TimeUnit unit)
          Get the code for a TimeUnit.
 java.lang.String plural(TimeUnit unit)
          Get the plural form for a TimeUnit.
 java.lang.String singular(TimeUnit unit)
          Get the singular form for a TimeUnit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnglishTimeUnitNames

public EnglishTimeUnitNames()
Method Detail

code

public java.lang.String code(TimeUnit unit)
Get the code for a TimeUnit.

Specified by:
code in interface TimeUnitNames
Parameters:
unit - The time unit.
Returns:
The code for the specified time unit.

plural

public java.lang.String plural(TimeUnit unit)
Get the plural form for a TimeUnit.

Specified by:
plural in interface TimeUnitNames
Parameters:
unit - The time unit.
Returns:
The plural form for the specified time unit.

singular

public java.lang.String singular(TimeUnit unit)
Get the singular form for a TimeUnit.

Specified by:
singular in interface TimeUnitNames
Parameters:
unit - The time unit.
Returns:
The singular form for the specified time unit.

The Encog Project