public class ReadingsKey extends DefaultLeafKeyList
The GNU Lesser General Public License for details.,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private Date |
date
The day of the year for the readings
|
private static MessageFormat |
KEY_FORMAT
Date formatter
|
private static long |
serialVersionUID
Serialization ID
|
| Modifier | Constructor and Description |
|---|---|
protected |
ReadingsKey(Date date)
Simple Constructor.
|
protected |
ReadingsKey(String text,
String osisName,
Key parent)
Simple Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ReadingsKey |
clone()
This needs to be declared here so that it is visible as a method on a
derived Key.
|
int |
compareTo(Key obj) |
boolean |
equals(Object obj)
This needs to be declared here so that it is visible as a method on a
derived Key.
|
static String |
external2internal(Calendar externalKey)
Convert the Gregorian Calendar to a string.
|
int |
hashCode()
This needs to be declared here so that it is visible as a method on a
derived Key.
|
addAll, blur, canHaveChildren, clear, contains, get, getCardinality, getChildCount, getName, getName, getOsisID, getOsisRef, getParent, getRootName, indexOf, isEmpty, iterator, removeAll, retainAll, toStringprivate Date date
private static final MessageFormat KEY_FORMAT
private static final long serialVersionUID
protected ReadingsKey(String text, String osisName, Key parent)
text - The textual version of the date for these readings in the
format "d mmmm"osisName - The OSIS id of this Keyparent - This Key's parent (or null of this Key has no parent)protected ReadingsKey(Date date)
date - The date for this keypublic boolean equals(Object obj)
Keyequals in interface Keyequals in class DefaultLeafKeyListpublic int hashCode()
KeyhashCode in interface KeyhashCode in class DefaultLeafKeyListpublic int compareTo(Key obj)
compareTo in interface Comparable<Key>compareTo in class DefaultLeafKeyListpublic ReadingsKey clone()
Keyclone in interface Keyclone in class DefaultLeafKeyList