List of usage examples for java.time Year of
public static Year of(int isoYear)
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.length()); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); Year l = y.with(Year.of(2013)); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); Year l = y.plusYears(2); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.isLeap()); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); Year l = y.minusYears(12); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.hashCode()); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.isBefore(Year.of(2015))); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.equals(Year.of(2015))); }
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); System.out.println(y.toString()); }