| Modifier and Type | Field and Description |
|---|---|
| private final Date | |
| private static final long | |
| private static final SimpleDateFormat | |
| private static final SimpleDateFormat |
| Access | Constructor and Description |
|---|---|
| public | NSDate(byte[]
The binary date representation. bytes)Creates new NSDate instance from its binary representation. |
| public | NSDate(byte[]
The byte array containing the date data. bytes, final int The index within the array at which the date data begins. startIndex, final int The index within the array at which the data date ends. endIndex)Creates a new NSDate instance from its binary representation. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public NSDate | clone()
Implements abstract com. Creates and returns a deep copy of this instance. |
| public int | compareTo(NSObject o)
Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Date | |
| public int | |
| private static synchronized String | Returns: The string representation of the date.The date which should be represented. date)Generates a string representation of a Java Date object. |
| private static synchronized String | Returns: The string representation of the date.The date which should be represented. date)Generates a string representation of a Java Date object. |
| private static synchronized Date | Returns: The parsed DateThe date string as found in an ASCII or XML property list textRepresentation)Parses a date string and creates a Java Date object from it. |
| protected void | toASCII(StringBuilder ascii, int level)
Implements abstract com. Generates the ASCII representation of this object. |
| protected void | toASCIIGnuStep(StringBuilder ascii, int level)
Implements abstract com. Generates the ASCII representation of this object in the GnuStep format. |
| pack-priv void | toBinary(BinaryPropertyListWriter out)
Implements abstract com. Generates the binary representation of the object. |
| public Object | toJavaObject()
Implements abstract com. Converts this NSObject into an equivalent object of the Java Runtime Environment. |
| public String | Returns: A string representation of the date.Overrides java. Generates a string representation of the date. |
| pack-priv void | toXML(StringBuilder xml, int level)
Implements abstract com. Generates the XML representation of the object (without XML headers or enclosing plist-tags). |
| date | back to summary |
|---|---|
| private final Date date | |
| EPOCH | back to summary |
|---|---|
| private static final long EPOCH | |
| sdfDefault | back to summary |
|---|---|
| private static final SimpleDateFormat sdfDefault | |
| sdfGnuStep | back to summary |
|---|---|
| private static final SimpleDateFormat sdfGnuStep | |
| NSDate | back to summary |
|---|---|
| public NSDate(byte[] bytes) Creates new NSDate instance from its binary representation.
| |
| NSDate | back to summary |
|---|---|
| public NSDate(byte[] bytes, final int startIndex, final int endIndex) Creates a new NSDate instance from its binary representation.
| |
| NSDate | back to summary |
|---|---|
| public NSDate(String textRepresentation) throws ParseException Creates a new NSDate instance from is textual representation.
The textual representation must adhere to one of the following patterns.
For XML property lists:
| |
| NSDate | back to summary |
|---|---|
| public NSDate(Date d) Creates a new NSDate instance.
| |
| clone | back to summary |
|---|---|
| public NSDate clone() Implements abstract com. Doc from com. Creates and returns a deep copy of this instance.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(NSObject o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getDate | back to summary |
|---|---|
| public Date getDate() Gets the date.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| makeDateString | back to summary |
|---|---|
| private static synchronized String makeDateString(Date date) Generates a string representation of a Java Date object. The string is formatted according to the specification for XML property list dates. | |
| makeDateStringGnuStep | back to summary |
|---|---|
| private static synchronized String makeDateStringGnuStep(Date date) Generates a string representation of a Java Date object. The string is formatted according to the specification for GnuStep ASCII property list dates. | |
| parseDateString | back to summary |
|---|---|
| private static synchronized Date parseDateString(String textRepresentation) throws ParseException Parses a date string and creates a Java Date object from it. This function is synchronized because the underlying SimpleDateFormat instances are not thread-safe.
| |
| toASCII | back to summary |
|---|---|
| protected void toASCII(StringBuilder ascii, int level) Implements abstract com. Doc from com. Generates the ASCII representation of this object. The generated ASCII representation does not end with a newline. Complies with the Old-Style ASCII Property Lists definition.
| |
| toASCIIGnuStep | back to summary |
|---|---|
| protected void toASCIIGnuStep(StringBuilder ascii, int level) Implements abstract com. Doc from com. Generates the ASCII representation of this object in the GnuStep format. The generated ASCII representation does not end with a newline.
| |
| toBinary | back to summary |
|---|---|
| pack-priv void toBinary(BinaryPropertyListWriter out) throws IOException Implements abstract com. Doc from com. Generates the binary representation of the object.
| |
| toJavaObject | back to summary |
|---|---|
| public Object toJavaObject() Implements abstract com. Doc from com. Converts this NSObject into an equivalent object of the Java Runtime Environment.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Generates a string representation of the date.
| |
| toXML | back to summary |
|---|---|
| pack-priv void toXML(StringBuilder xml, int level) Implements abstract com. Doc from com. Generates the XML representation of the object (without XML headers or enclosing plist-tags).
| |