List of usage examples for java.time Year isSupported
@Override public boolean isSupported(TemporalUnit unit)
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.isSupported(ChronoUnit.YEARS)); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.isSupported(ChronoField.YEAR)); }