object MinguoDate extends Serializable
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- MinguoDate
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
from(temporal: TemporalAccessor): MinguoDate
Obtains a
MinguoDate
from a temporal object.Obtains a
MinguoDate
from a temporal object.This obtains a date in the Minguo calendar system based on the specified temporal. A
TemporalAccessor
represents an arbitrary set of date and time information, which this factory converts to an instance ofMinguoDate
.The conversion typically uses the
EPOCH_DAY
field, which is standardized across calendar systems.This method matches the signature of the functional interface
TemporalQuery
allowing it to be used as a query via method reference,MinguoDate::from
.- temporal
the temporal object to convert, not null
- returns
the date in Minguo calendar system, not null
- Exceptions thrown
DateTimeException
if unable to convert to a { @code MinguoDate}
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
now(clock: Clock): MinguoDate
Obtains the current
MinguoDate
from the specified clock.Obtains the current
MinguoDate
from the specified clock.This will query the specified clock to obtain the current date - today. Using this method allows the use of an alternate clock for testing. The alternate clock may be introduced using dependency injection.
- clock
the clock to use, not null
- returns
the current date, not null
- Exceptions thrown
DateTimeException
if the current date cannot be obtained
-
def
now(zone: ZoneId): MinguoDate
Obtains the current
MinguoDate
from the system clock in the specified time-zone.Obtains the current
MinguoDate
from the system clock in the specified time-zone.This will query the
system clock
to obtain the current date. Specifying the time-zone avoids dependence on the default time-zone.Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
- zone
the zone ID to use, not null
- returns
the current date using the system clock, not null
-
def
now: MinguoDate
Obtains the current
MinguoDate
from the system clock in the default time-zone.Obtains the current
MinguoDate
from the system clock in the default time-zone.This will query the
system clock
in the default time-zone to obtain the current date.Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
- returns
the current date using the system clock and default time-zone, not null
-
def
of(prolepticYear: Int, month: Int, dayOfMonth: Int): MinguoDate
Obtains a
MinguoDate
representing a date in the Minguo calendar system from the proleptic-year, month-of-year and day-of-month fields.Obtains a
MinguoDate
representing a date in the Minguo calendar system from the proleptic-year, month-of-year and day-of-month fields.This returns a
MinguoDate
with the specified fields. The day must be valid for the year and month, otherwise an exception will be thrown.- prolepticYear
the Minguo proleptic-year
- month
the Minguo month-of-year, from 1 to 12
- dayOfMonth
the Minguo day-of-month, from 1 to 31
- returns
the date in Minguo calendar system, not null
- Exceptions thrown
DateTimeException
if the value of any field is out of range, or if the day-of-month is invalid for the month-year
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )