T - the type of objects handled by this matcherpublic abstract class TemporalMatcher<T>
extends org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.Matcher for temporal objects allowing for time zone manipulation.| Constructor and Description |
|---|
TemporalMatcher() |
| Modifier and Type | Method and Description |
|---|---|
abstract TemporalMatcher<T> |
atLocale(Locale locale)
Creates a copy of this matcher using a specific locale.
|
TemporalMatcher<T> |
atOffset(ZoneOffset offset)
Creates a copy of this matcher using a specific time offset.
|
abstract TemporalMatcher<T> |
atZone(ZoneId zone)
Creates a copy of this matcher using a specific time zone.
|
describeMismatch, matches, matchesSafely_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic abstract TemporalMatcher<T> atZone(ZoneId zone)
zone - a ZoneIdpublic abstract TemporalMatcher<T> atLocale(Locale locale)
locale - a Localepublic TemporalMatcher<T> atOffset(ZoneOffset offset)
offset - the new time offsetCopyright © 2021 eXparity Limited. All rights reserved.