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
 String code(TimeUnit unit)
          Get the code for the specified time unit.
 String plural(TimeUnit unit)
          Get the plural name for the specified time unit.
 String singular(TimeUnit unit)
          Get the singular form of the specified time unit.
 

Method Detail

code

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

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

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.


Copyright © 2014. All Rights Reserved.