public LocalTime toMemberType(Long val) {
    if (val == null) {
      return null;
    }

    return LocalTime.ofNanoOfDay(val);
  }
Example #2
0
 @Test(groups = {"implementation"})
 public void factory_ofNanoOfDay_singletons() {
   for (int i = 0; i < 24; i++) {
     LocalTime test1 = LocalTime.ofNanoOfDay(i * 1000000000L * 60L * 60L);
     LocalTime test2 = LocalTime.of(i, 0);
     assertSame(test1, test2);
   }
 }
Example #3
0
  public TimePicker() {
    // Zeit auf 0 setzen
    timeProperty.set(LocalTime.ofNanoOfDay(0));

    createGui();
  }