public class ReadingsKey extends DefaultLeafKeyList
The GNU Lesser General Public License for details.
,
Serialized FormModifier 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, toString
private 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)
Key
equals
in interface Key
equals
in class DefaultLeafKeyList
public int hashCode()
Key
hashCode
in interface Key
hashCode
in class DefaultLeafKeyList
public int compareTo(Key obj)
compareTo
in interface Comparable<Key>
compareTo
in class DefaultLeafKeyList
public ReadingsKey clone()
Key
clone
in interface Key
clone
in class DefaultLeafKeyList