Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.util.time
Class EnglishTimeUnitNames

    java.lang.Object
      org.encog.util.time.EnglishTimeUnitNames

All Implemented Interfaces:
  TimeUnitNames

    public class EnglishTimeUnitNames

extends Object
implements TimeUnitNames

Class used to get the English names for TimeUnits.

Author:
  jheaton

Constructor Summary
`EnglishTimeUnitNames()`

Method Summary
`String` | `code(TimeUnit unit)` Get the code for a TimeUnit.
`String` | `plural(TimeUnit unit)` Get the plural form for a TimeUnit.
`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 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 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 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.