public final class HijriAdjustment extends 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.
|
String |
getVariant()
Yields the variant name of a calendar system.
|
static HijriAdjustment |
of(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(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 String getVariant()
VariantSourceYields the variant name of a calendar system.
getVariant in interface VariantSourcepublic int getValue()
Obtains the adjustment in days.
Copyright © 2014–2021. All rights reserved.