MCPcopy Create free account
hub / github.com/MenoData/Time4J / compareTo

Method compareTo

base/src/test/java/net/time4j/tz/OffsetTest.java:267–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 }
266
267 @Test
268 public void compareTo() {
269 ZonalOffset offset1 =
270 ZonalOffset.ofHours(OffsetSign.BEHIND_UTC, 4);
271 ZonalOffset offset2 =
272 ZonalOffset.ofHours(OffsetSign.AHEAD_OF_UTC, 3);
273 assertThat(
274 offset1.compareTo(offset2) < 0,
275 is(true));
276 assertThat(
277 offset2.compareTo(ZonalOffset.UTC) > 0,
278 is(true));
279 }
280
281 @Test
282 public void canonical() {

Callers

nothing calls this directly

Calls 2

ofHoursMethod · 0.95
compareToMethod · 0.95

Tested by

no test coverage detected