RBMBackedTimestampSetInRange extends KoryphePredicate<RBMBackedTimestampSet> { public TimeUnit getTimeUnit() { return timeUnit; } RBMBackedTimestampSetInRange();  RBMBackedTimestampSetInRange(final Number startTime, final Number endTime);  RBMBackedTimestampSetInRange(final Number startTime, final Number endTime, final TimeUnit timeUnit);  RBMBackedTimestampSetInRange(final Number startTime, final Number endTime, final TimeUnit timeUnit, final Boolean includeAllTimestamps); @Override boolean test(final RBMBackedTimestampSet rbmBackedTimestampSet); Number getStartTime(); @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.WRAPPER_OBJECT) void setStartTime(final Number startTime); RBMBackedTimestampSetInRange startTime(final Number startTime); @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.WRAPPER_OBJECT) Number getEndTime(); void setEndTime(final Number endTime); RBMBackedTimestampSetInRange endTime(final Number endTime); TimeUnit getTimeUnit(); void setTimeUnit(final TimeUnit timeUnit); RBMBackedTimestampSetInRange timeUnit(final TimeUnit timeUnit); Boolean isIncludeAllTimestamps(); void setIncludeAllTimestamps(final Boolean includeAllTimestamps); void setIncludeAllTimestamps(); RBMBackedTimestampSetInRange includeAllTimestamps(); RBMBackedTimestampSetInRange includeAllTimestamps(final Boolean includeAllTimestamps);  }
@Test public void shouldSetTimeUnitToMillisecondsIfNotSpecifiedInTheJson() throws IOException { String serialised = "{" + "\"class\":\"uk.gov.gchq.gaffer.time.predicate.RBMBackedTimestampSetInRange\"," + "\"startTime\":10," + "\"endTime\":200" + "}"; RBMBackedTimestampSetInRange pred = JsonSerialiser.deserialise(serialised, RBMBackedTimestampSetInRange.class); assertEquals(TimeUnit.MILLISECOND, pred.getTimeUnit()); }