Example usage for java.time ZoneId equals

List of usage examples for java.time ZoneId equals

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this time-zone ID is equal to another time-zone ID.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneId z = ZoneId.systemDefault();
    System.out.println(z.equals(ZoneId.systemDefault()));
}