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

    return LocalTime.ofNanoOfDay(val);
  }
示例#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);
   }
 }
示例#3
0
  public TimePicker() {
    // Zeit auf 0 setzen
    timeProperty.set(LocalTime.ofNanoOfDay(0));

    createGui();
  }