Package org.jfree.data.time
Class TimePeriodAnchor
java.lang.Object
org.jfree.data.time.TimePeriodAnchor
- All Implemented Interfaces:
Serializable
Used to indicate one of three positions in a time period:
START, MIDDLE and END.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TimePeriodAnchorEnd of period.static final TimePeriodAnchorMiddle of period.private StringThe name.private static final longFor serialization.static final TimePeriodAnchorStart of period. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this object is equal to the specified object, andfalseotherwise.inthashCode()Returns a hash code value for the object.private ObjectEnsures that serialization returns the unique instances.toString()Returns a string representing the object.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
START
Start of period. -
MIDDLE
Middle of period. -
END
End of period. -
name
The name.
-
-
Constructor Details
-
TimePeriodAnchor
Private constructor.- Parameters:
name- the name.
-
-
Method Details
-
toString
Returns a string representing the object. -
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise. -
hashCode
public int hashCode()Returns a hash code value for the object. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException- if there is a problem.
-