TimeValue extends ObjectValueAdapter<OffsetTime> { @Override public OffsetTime asOffsetTime() { return asObject(); } TimeValue( OffsetTime time ); @Override OffsetTime asOffsetTime(); @Override Type type();  }
@Test void shouldSupportAsOffsetTime() { OffsetTime time = OffsetTime.of( 23, 59, 59, 999_999_999, ZoneOffset.ofHoursMinutes( 2, 15 ) ); TimeValue timeValue = new TimeValue( time ); assertEquals( time, timeValue.asOffsetTime() ); }