@Override
    public boolean isExpired(final Instant instant) {
        Args.notNull(instant, "Instant");
        return cookieExpiryDate != null
                && cookieExpiryDate.compareTo(instant) <= 0;
    }
Returns true if this cookie has expired.
@param instant Current time

@return {@code true} if the cookie has expired.
httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicClientCookie.java