/** * A suitable hashcode for the chronology. * * @return the hashcode * @since 1.4 */ public int hashCode() { return 236548278 + getBase().hashCode() * 7; }
/** * A suitable hashcode for the chronology. * * @return the hashcode * @since 1.4 */ public int hashCode() { return 236548278 + getBase().hashCode() * 7; }
/** * A lenient chronology is only equal to a lenient chronology with the * same base chronology. * * @param obj the object to compare to * @return true if equal * @since 1.4 */ public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof LenientChronology == false) { return false; } LenientChronology chrono = (LenientChronology) obj; return getBase().equals(chrono.getBase()); }
/** * A lenient chronology is only equal to a lenient chronology with the * same base chronology. * * @param obj the object to compare to * @return true if equal * @since 1.4 */ public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof LenientChronology == false) { return false; } LenientChronology chrono = (LenientChronology) obj; return getBase().equals(chrono.getBase()); }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
private final DateTimeField convertField(DateTimeField field) { return LenientDateTimeField.getInstance(field, getBase()); }
private final DateTimeField convertField(DateTimeField field) { return LenientDateTimeField.getInstance(field, getBase()); }
public Chronology withUTC() { if (iWithUTC == null) { if (getZone() == DateTimeZone.UTC) { iWithUTC = this; } else { iWithUTC = LenientChronology.getInstance(getBase().withUTC()); } } return iWithUTC; }
public Chronology withUTC() { if (iWithUTC == null) { if (getZone() == DateTimeZone.UTC) { iWithUTC = this; } else { iWithUTC = LenientChronology.getInstance(getBase().withUTC()); } } return iWithUTC; }
public Chronology withZone(DateTimeZone zone) { if (zone == null) { zone = DateTimeZone.getDefault(); } if (zone == DateTimeZone.UTC) { return withUTC(); } if (zone == getZone()) { return this; } return LenientChronology.getInstance(getBase().withZone(zone)); }
public Chronology withZone(DateTimeZone zone) { if (zone == null) { zone = DateTimeZone.getDefault(); } if (zone == DateTimeZone.UTC) { return withUTC(); } if (zone == getZone()) { return this; } return LenientChronology.getInstance(getBase().withZone(zone)); }
/** * A suitable hashcode for the chronology. * * @return the hashcode * @since 1.4 */ public int hashCode() { return 236548278 + getBase().hashCode() * 7; }
/** * A lenient chronology is only equal to a lenient chronology with the * same base chronology. * * @param obj the object to compare to * @return true if equal * @since 1.4 */ public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof LenientChronology == false) { return false; } LenientChronology chrono = (LenientChronology) obj; return getBase().equals(chrono.getBase()); }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
private final DateTimeField convertField(DateTimeField field) { return LenientDateTimeField.getInstance(field, getBase()); }
public Chronology withUTC() { if (iWithUTC == null) { if (getZone() == DateTimeZone.UTC) { iWithUTC = this; } else { iWithUTC = LenientChronology.getInstance(getBase().withUTC()); } } return iWithUTC; }
public Chronology withZone(DateTimeZone zone) { if (zone == null) { zone = DateTimeZone.getDefault(); } if (zone == DateTimeZone.UTC) { return withUTC(); } if (zone == getZone()) { return this; } return LenientChronology.getInstance(getBase().withZone(zone)); }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
public Chronology withUTC() { if (iWithUTC == null) { if (getZone() == DateTimeZone.UTC) { iWithUTC = this; } else { iWithUTC = LenientChronology.getInstance(getBase().withUTC()); } } return iWithUTC; }