public IsoDate(Number y, Number m, Number d, Number era, Boolean yearEraAdjustNeeded) { this.year = (y != null)? y.intValue():-1; this.month = (m != null)? m.intValue():-1; this.day = (d != null)? d.intValue():-1; this.era = (era != null)? era.intValue():ERA_UNKNOWN; if (yearEraAdjustNeeded != null && yearEraAdjustNeeded && this.era == ERA_BC) { if (this.year > 0) { this.year--; } } initBase(); }
initBase(); if (year < 0 && !PAD_FIELD_UNKNOWN4.equals(y)) { if (Character.isDigit(y.charAt(0)) && Character.isDigit(y.charAt(1))) {
public IsoDate(Number y, Number m, Number d, Number era, Boolean yearEraAdjustNeeded) { this.year = (y != null)? y.intValue():-1; this.month = (m != null)? m.intValue():-1; this.day = (d != null)? d.intValue():-1; this.era = (era != null)? era.intValue():ERA_UNKNOWN; if (yearEraAdjustNeeded != null && yearEraAdjustNeeded && this.era == ERA_BC) { if (this.year > 0) { this.year--; } } initBase(); }
public void setDay(int d) { this.day = d; initBase(); }
public void setYear(int y) { this.year = y; initBase(); }
public void setYear(int y) { this.year = y; initBase(); }
public void setDate(int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); }
public void setDay(int d) { this.day = d; initBase(); }
public void setMonth(int m) { this.month = m; initBase(); }
public void setDate(int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); }
public void setMonth(int m) { this.month = m; initBase(); }
public IsoDate(StandardTemporalType temporalType, int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); this.standardTemporalType = temporalType; }
public IsoDate(Number y, Number m, Number d, Number era, Boolean yearEraAdjustNeeded) { this.year = (y != null)? y.intValue():-1; this.month = (m != null)? m.intValue():-1; this.day = (d != null)? d.intValue():-1; this.era = (era != null)? era.intValue():ERA_UNKNOWN; if (yearEraAdjustNeeded != null && yearEraAdjustNeeded && this.era == ERA_BC) { if (this.year > 0) { this.year--; } } initBase(); }
public IsoDate(int y, int m, int d) { this.year = y; this.month = m; this.day = d; /* String y2 = (year >= 0)? String.format("%04d", year): PAD_FIELD_UNKNOWN4; String m2 = (month >= 0)? String.format("%02d", month): PAD_FIELD_UNKNOWN2; String d2 = (day >= 0)? String.format("%02d", day): PAD_FIELD_UNKNOWN2; isoDateString = y2 + "-" + m2 + "-" + d2; */ initBase(); }
public IsoDate(StandardTemporalType temporalType, int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); this.standardTemporalType = temporalType; }
public void setDay(int d) { this.day = d; initBase(); }
public void setYear(int y) { this.year = y; initBase(); }
public void setDate(int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); }
public void setMonth(int m) { this.month = m; initBase(); }
public IsoDate(StandardTemporalType temporalType, int y, int m, int d) { this.year = y; this.month = m; this.day = d; initBase(); this.standardTemporalType = temporalType; }