Lines Matching defs:ThaiBuddhistDate

98  * {@code ThaiBuddhistDate} may have unpredictable results and should be avoided.
106 public final class ThaiBuddhistDate
107 extends ChronoLocalDateImpl<ThaiBuddhistDate>
122 * Obtains the current {@code ThaiBuddhistDate} from the system clock in the default time-zone.
132 public static ThaiBuddhistDate now() {
137 * Obtains the current {@code ThaiBuddhistDate} from the system clock in the specified time-zone.
148 public static ThaiBuddhistDate now(ZoneId zone) {
153 * Obtains the current {@code ThaiBuddhistDate} from the specified clock.
163 public static ThaiBuddhistDate now(Clock clock) {
164 return new ThaiBuddhistDate(LocalDate.now(clock));
168 * Obtains a {@code ThaiBuddhistDate} representing a date in the Thai Buddhist calendar
171 * This returns a {@code ThaiBuddhistDate} with the specified fields.
181 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) {
182 return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth));
186 * Obtains a {@code ThaiBuddhistDate} from a temporal object.
190 * which this factory converts to an instance of {@code ThaiBuddhistDate}.
196 * allowing it to be used as a query via method reference, {@code ThaiBuddhistDate::from}.
200 * @throws DateTimeException if unable to convert to a {@code ThaiBuddhistDate}
202 public static ThaiBuddhistDate from(TemporalAccessor temporal) {
212 ThaiBuddhistDate(LocalDate isoDate) {
311 public ThaiBuddhistDate with(TemporalField field, long newValue) {
346 public ThaiBuddhistDate with(TemporalAdjuster adjuster) {
356 public ThaiBuddhistDate plus(TemporalAmount amount) {
366 public ThaiBuddhistDate minus(TemporalAmount amount) {
372 ThaiBuddhistDate plusYears(long years) {
377 ThaiBuddhistDate plusMonths(long months) {
382 ThaiBuddhistDate plusWeeks(long weeksToAdd) {
387 ThaiBuddhistDate plusDays(long days) {
392 public ThaiBuddhistDate plus(long amountToAdd, TemporalUnit unit) {
397 public ThaiBuddhistDate minus(long amountToAdd, TemporalUnit unit) {
402 ThaiBuddhistDate minusYears(long yearsToSubtract) {
407 ThaiBuddhistDate minusMonths(long monthsToSubtract) {
412 ThaiBuddhistDate minusWeeks(long weeksToSubtract) {
417 ThaiBuddhistDate minusDays(long daysToSubtract) {
421 private ThaiBuddhistDate with(LocalDate newDate) {
422 return (newDate.equals(isoDate) ? this : new ThaiBuddhistDate(newDate));
427 public final ChronoLocalDateTime<ThaiBuddhistDate> atTime(LocalTime localTime) {
428 return (ChronoLocalDateTime<ThaiBuddhistDate>) super.atTime(localTime);
446 * Compares this {@code ThaiBuddhistDate} with another ensuring that the date is the same.
448 * Only objects of type {@code ThaiBuddhistDate} are compared, other types return false.
460 if (obj instanceof ThaiBuddhistDate) {
461 ThaiBuddhistDate otherDate = (ThaiBuddhistDate) obj;
493 * out.writeByte(10); // identifies a ThaiBuddhistDate
512 static ThaiBuddhistDate readExternal(DataInput in) throws IOException {