List of usage examples for java.time Period equals
@Override public boolean equals(Object obj)
Source Link
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofDays(12); System.out.println(p.equals(Period.ZERO)); }