Java Date Compare max(Date a, Date b)

Here you can find the source of max(Date a, Date b)

Description

max

License

Open Source License

Declaration

public static Date max(Date a, Date b) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    /****************************************************************************
    * max/*  w  w w  .  j a v a 2  s .c  o  m*/
    ****************************************************************************/
    public static int max(int a, int b) {
        if (a > b) {
            return a;
        }
        return b;
    }

    public static Date max(Date a, Date b) {
        if (a.after(b)) {
            return a;
        }
        return b;
    }
}

Related

  1. getCompareResult(String date1, String date2)
  2. isAfterOrEqual(Date date, Date toCompare)
  3. isBeforeDate(String sCompareDate)
  4. isInDate(Date date, Date compareDate)
  5. max(Collection datumok)
  6. max(final Date a, final Date b)
  7. max(Set dateSet)
  8. mergeNonDateKeys(List rowKeys, List columnKeys)
  9. min(Calendar... dates)