Example usage for java.text SimpleDateFormat equals

List of usage examples for java.text SimpleDateFormat equals

Introduction

In this page you can find the example usage for java.text SimpleDateFormat equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Compares the given object with this SimpleDateFormat for equality.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {

    SimpleDateFormat formatter = new SimpleDateFormat();
    formatter.applyPattern("MMM");

    System.out.println(formatter.equals(new SimpleDateFormat()));
}