@Test public void testGetFullAge4LocalDate() { int currentYear = LocalDate.now().getYear(); int birthYear = 2010; LocalDate birthDate = LocalDate.of(birthYear, 1, 1); Assert.assertEquals(currentYear - birthYear, AgeUtils.getFullAge(birthDate)); }
public static int getFullAge(Date birthDate) { return getFullAge(birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); }
AgeUtils { public static int getFullAge(Date birthDate) { return getFullAge(birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); } }
AgeUtils { public static int getFullAge(Date birthDate) { return getFullAge(birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); }  }
AgeUtils { public static int getFullAge(Date birthDate) { return getFullAge(birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); }  static int getFullAge(Date birthDate); static int getFullAge(Calendar birthDate); static int getFullAge(LocalDate birthDate); static int getFullAge(LocalDate fromDate, LocalDate toDate); static Period getAge(LocalDate birthDate); static Period getAge(LocalDate fromDate, LocalDate toDate); }
AgeUtils { public static int getFullAge(Date birthDate) { return getFullAge(birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); }  static int getFullAge(Date birthDate); static int getFullAge(Calendar birthDate); static int getFullAge(LocalDate birthDate); static int getFullAge(LocalDate fromDate, LocalDate toDate); static Period getAge(LocalDate birthDate); static Period getAge(LocalDate fromDate, LocalDate toDate);  }