implicit final class LocalTimeType extends AnyVal
Provides extension methods to java.time.LocalTime
- Alphabetic
- By Inheritance
- LocalTimeType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LocalTimeType(time: LocalTime)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(amount: TemporalAmount): LocalTime
Gets time with specified amount added.
Gets time with specified amount added.
- amount
temporal amount
-
def
-(amount: TemporalAmount): LocalTime
Gets time with specified amount subtracted.
Gets time with specified amount subtracted.
- amount
temporal amount
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atEndOfDay(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of day.
Gets time adjusted to end of day.
- precision
time precision
-
def
atEndOfHour(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of hour.
Gets time adjusted to end of hour.
- precision
time precision
-
def
atEndOfMicros(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of microsecond.
Gets time adjusted to end of microsecond.
- precision
time precision
-
def
atEndOfMillis(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of millisecond.
Gets time adjusted to end of millisecond.
- precision
time precision
-
def
atEndOfMinute(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of minute.
Gets time adjusted to end of minute.
- precision
time precision
-
def
atEndOfSecond(implicit precision: TimePrecision): LocalTime
Gets time adjusted to end of second.
Gets time adjusted to end of second.
- precision
time precision
-
def
atStartOfDay: LocalTime
Gets time truncated to day.
-
def
atStartOfHour: LocalTime
Gets time truncated to hour.
-
def
atStartOfMicros: LocalTime
Gets time truncated to microsecond.
-
def
atStartOfMillis: LocalTime
Gets time truncated to millisecond.
-
def
atStartOfMinute: LocalTime
Gets time truncated to minute.
-
def
atStartOfSecond: LocalTime
Gets time truncated to second.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterateTo(end: LocalTime, step: Duration = Duration.ofSeconds(1)): Iterator[LocalTime]
Creates iterator to end time (inclusive).
Creates iterator to end time (inclusive).
- end
end time
- step
duration by which to step
- Exceptions thrown
IllegalArgumentExceptionifstepis zero.
-
def
iterateUntil(end: LocalTime, step: Duration = Duration.ofSeconds(1)): Iterator[LocalTime]
Creates iterator to end time (exclusive).
Creates iterator to end time (exclusive).
- end
end time
- step
duration by which to step
-
def
max(other: LocalTime): LocalTime
Compares to other time and returns the greater value.
Compares to other time and returns the greater value.
- other
other time
-
def
min(other: LocalTime): LocalTime
Compares to other time and returns the lesser value.
Compares to other time and returns the lesser value.
- other
other time
- val time: LocalTime
-
def
toString(): String
- Definition Classes
- Any