Package org.joda.time.chrono
Class IslamicChronology.LeapYearPatternType
java.lang.Object
org.joda.time.chrono.IslamicChronology.LeapYearPatternType
- All Implemented Interfaces:
Serializable
- Enclosing class:
IslamicChronology
Opaque object describing a leap year pattern for the Islamic Chronology.
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byteThe index.(package private) final intThe leap year pattern, a bit-based 1=true pattern.private static final longSerialization lock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()(package private) booleanisLeapYear(int year) Is the year a leap year.private ObjectEnsure a singleton is returned if possible.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization lock- See Also:
-
index
final byte indexThe index. -
pattern
final int patternThe leap year pattern, a bit-based 1=true pattern.
-
-
Constructor Details
-
LeapYearPatternType
LeapYearPatternType(int index, int pattern) Constructor. This constructor takes a bit pattern where bits 0-29 correspond to years 0-29 in the 30 year Islamic cycle of years. This allows a highly efficient lookup by bit-matching.- Parameters:
index- the indexpattern- the bit pattern
-
-
Method Details
-
isLeapYear
boolean isLeapYear(int year) Is the year a leap year.- Parameters:
year- the year to query- Returns:
- true if leap
-
readResolve
Ensure a singleton is returned if possible.- Returns:
- the singleton instance
-
equals
-
hashCode
public int hashCode()
-