Android Timestamp Compare equals(Timestamp t1, Timestamp t2)

Here you can find the source of equals(Timestamp t1, Timestamp t2)

Description

equals

Declaration

public static boolean equals(Timestamp t1, Timestamp t2) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

public class Main {
    public static boolean equals(Timestamp t1, Timestamp t2) {
        if (t1 == null && t2 == null) {
            return true;
        } else {//from w w  w.ja  v  a  2  s.  c o  m
            if (t1 == null) {
                return t2.equals(t1);
            } else {
                return t1.equals(t2);
            }
        }
    }
}

Related

  1. after(Timestamp t1, Timestamp t2)
  2. before(Timestamp t1, Timestamp t2)
  3. compare(Timestamp t1, Timestamp t2, int what)