V - generic type of element valuespublic abstract class BasicElement<V> extends Object implements ChronoElement<V>, Serializable
Abstract base implementation of a chronological element which has a name and can also define an (unregistered) element rule.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Based on equality of element names AND element classes.
|
char |
getSymbol()
There is no format symbol by default.
|
int |
hashCode()
Based on the element name.
|
boolean |
isLenient()
Chronological elements are strict by default.
|
String |
name()
Returns the name which is unique within the context of a given
chronology.
|
String |
toString()
Serves mainly for debugging support.
|
compare, getDefaultMaximum, getDefaultMinimum, getType, isDateElement, isTimeElementpublic final String name()
ChronoElementReturns the name which is unique within the context of a given chronology.
The name can also serve as resource key together with the name of a chronology for a localized description.
name in interface ChronoElement<V>public char getSymbol()
There is no format symbol by default.
In order to define a format symbol subclasses must override this
methode. In that case such an element instance should be annotated
with the annotation FormattableElement for documentation
support.
getSymbol in interface ChronoElement<V>FormattableElementpublic boolean isLenient()
Chronological elements are strict by default.
isLenient in interface ChronoElement<V>falseElementRule.withValue(T, V, boolean)public boolean equals(Object obj)
Based on equality of element names AND element classes.
equals in interface Comparator<ChronoEntity<?>>equals in class Objecttrue if this instance and the argument are of same
class and have same names else falsepublic int hashCode()
Based on the element name.
Copyright © 2014. All rights reserved.