The Encog Project

org.encog.util.time
Interface TimeUnitNames

All Known Implementing Classes:
EnglishTimeUnitNames

public interface TimeUnitNames

Get the name or code for a time unit.

Author:
jheaton

Method Summary
 java.lang.String code(TimeUnit unit)
          Get the code for the specified time unit.
 java.lang.String plural(TimeUnit unit)
          Get the plural name for the specified time unit.
 java.lang.String singular(TimeUnit unit)
          Get the singular form of the specified time unit.
 

Method Detail

code

java.lang.String code(TimeUnit unit)
Get the code for the specified time unit.

Parameters:
unit - The time unit.
Returns:
Return the code for the specified time unit.

plural

java.lang.String plural(TimeUnit unit)
Get the plural name for the specified time unit.

Parameters:
unit - The time unit.
Returns:
Return the plural name for the specified unit.

singular

java.lang.String singular(TimeUnit unit)
Get the singular form of the specified time unit.

Parameters:
unit - The time unit.
Returns:
The singular form of the specified time unit.

The Encog Project