public abstract class AbstractTimeUnit extends Object implements Unit
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviatedName()
Returns a short version of the unit's singular name.
|
int |
getCalendarUnits()
The equivalent units in
Calendar. |
protected long |
getLength() |
Format |
getLongFormat() |
Format |
getMediumFormat() |
String |
getName()
Returns the unit's singular name.
|
String |
getPluralName()
Returns the unit's plural name.
|
Format |
getShortFormat() |
String |
toString()
Returns the unit's name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddToPositioncompareTopublic String getPluralName()
UnitgetPluralName in interface UnitStringpublic String getName()
Unitpublic String getAbbreviatedName()
UnitgetAbbreviatedName in interface UnitStringprotected long getLength()
public int getCalendarUnits()
Calendar.intpublic Format getLongFormat()
getLongFormat in interface Unitpublic Format getMediumFormat()
getMediumFormat in interface Unitpublic Format getShortFormat()
getShortFormat in interface Unitpublic String toString()
toString in class ObjectObject.toString(),
getName()Copyright © 2012–2017 Emory University. All rights reserved.