Example usage for java.time Period equals

List of usage examples for java.time Period equals

Introduction

In this page you can find the example usage for java.time Period equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this period is equal to another period.

Usage

From source file:Main.java

public static void main(String[] args) {
    Period p = Period.ofDays(12);

    System.out.println(p.equals(Period.ZERO));

}