public boolean isExpired()
    {
        if(this.getExpirationTime() == null)
        {
            return true;
        }

        Date expirationTime = new Date(this.getExpirationTime());

        return (expirationTime.before(new Date()));
    }
public boolean isExpired()
    {
        if(this.getExpirationTime() == null)
        {
            return true;
        }

        Date expirationTime = new Date(this.getExpirationTime());

        return (expirationTime.before(new Date()));
    }
public boolean isExpired ( ) { if ( this . getExpirationTime ( ) == null ) { return true ; } Date expirationTime = new Date ( this . getExpirationTime ( ) ) ; return ( expirationTime . before ( new Date ( ) ) ) ; }
Check the {@code getExpirationTime} to confirm whether
the ticket has expired.

@return Whether the ticket has expired.
Check the { @code getExpirationTime } to confirm whether the ticket has expired .