public class LocalTimeWrapper extends Object implements TemporalWrapper<LocalTime>
TemporalWrapper which wraps a LocalTime
instance| Constructor and Description |
|---|
LocalTimeWrapper(int hour,
int minute,
int second) |
LocalTimeWrapper(LocalTime date) |
| Modifier and Type | Method and Description |
|---|---|
long |
difference(LocalTime other,
ChronoUnit unit)
Return the difference in units between this time and the other time in the given units
|
boolean |
isAfter(LocalTime other) |
boolean |
isBefore(LocalTime other) |
boolean |
isSame(LocalTime other) |
boolean |
isSameDay(LocalTime other) |
LocalTime |
unwrap() |
public LocalTimeWrapper(LocalTime date)
public LocalTimeWrapper(int hour,
int minute,
int second)
public long difference(LocalTime other, ChronoUnit unit)
TemporalWrapperdifference in interface TemporalWrapper<LocalTime>public boolean isAfter(LocalTime other)
isAfter in interface TemporalWrapper<LocalTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isBefore(LocalTime other)
isBefore in interface TemporalWrapper<LocalTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isSame(LocalTime other)
isSame in interface TemporalWrapper<LocalTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isSameDay(LocalTime other)
isSameDay in interface TemporalWrapper<LocalTime>other - a temporal to test againsttrue if this temporal is after the otherpublic LocalTime unwrap()
unwrap in interface TemporalWrapper<LocalTime>Copyright © 2016. All rights reserved.