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

    Constructors
    Constructor and Description
    `EnglishTimeUnitNames()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

Copyright © 2014. All Rights Reserved.