public boolean isExpired(final Date date){
  if (date == null) {
    throw new IllegalArgumentException("Date may not be null");
  }
  return (cookieExpiryDate != null && cookieExpiryDate.getTime() <= date.getTime());
}

public boolean isExpired ( final Date date ) { if ( date == null ) { throw new IllegalArgumentException ( "Date may not be null" ) ; } return ( cookieExpiryDate != null && cookieExpiryDate . getTime ( ) <= date . getTime ( ) ) ; }
returns true if this cookie has expired .
