public final class HijriAdjustment extends java.lang.Object implements VariantSource
Represents a small day adjustment to any islamic calendar variant.
Many local islamic authorities decide their own rules when to start a new month. This class can help in such situations when the rules are not predictable but based on sighting of New Moon.
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Obtains the adjustment in days.
|
java.lang.String |
getVariant()
Yields the variant name.
|
static HijriAdjustment |
of(java.lang.String variant,
int adjustment)
Defines a day adjustment of the given Hijri calendar variant.
|
static HijriAdjustment |
of(VariantSource variantSource,
int adjustment)
Defines a day adjustment of the given Hijri calendar variant.
|
static HijriAdjustment |
ofUmalqura(int adjustment)
Defines a day adjustment of the Umalqura-variant of Hijri calendar.
|
public static HijriAdjustment ofUmalqura(int adjustment)
Defines a day adjustment of the Umalqura-variant of Hijri calendar.
adjustment - small adjustment in days between -3 and 3 (inclusive)HijriAdjustmentChronoException - if the adjustment is out of range -3 <= adjustment <= 3public static HijriAdjustment of(java.lang.String variant, int adjustment)
Defines a day adjustment of the given Hijri calendar variant.
variant - basic variantadjustment - small adjustment in days between -3 and 3 (inclusive)HijriAdjustmentChronoException - if the adjustment is out of range -3 <= adjustment <= 3public static HijriAdjustment of(VariantSource variantSource, int adjustment)
Defines a day adjustment of the given Hijri calendar variant.
variantSource - source of variantadjustment - small adjustment in days between -3 and 3 (inclusive)HijriAdjustmentChronoException - if the adjustment is out of range -3 <= adjustment <= 3public java.lang.String getVariant()
VariantSourceYields the variant name.
getVariant in interface VariantSourcepublic int getValue()
Obtains the adjustment in days.