public interface Unit extends Serializable, Comparable<Unit>
Serializable so that it can be
stored as part of Proposition
s.| Modifier and Type | Method and Description |
|---|---|
long |
addToPosition(long position,
int length)
Adds a length in these units to the given position.
|
String |
getAbbreviatedName()
Returns a short version of the unit's singular name.
|
Format |
getLongFormat() |
Format |
getMediumFormat() |
String |
getName()
Returns the unit's singular name.
|
String |
getPluralName()
Returns the unit's plural name.
|
Format |
getShortFormat() |
compareToString getAbbreviatedName()
StringFormat getShortFormat()
Format getMediumFormat()
Format getLongFormat()
long addToPosition(long position,
int length)
position - a longlength - an intlongCopyright © 2012–2018 Emory University. All rights reserved.