@Override
    public int compareTo(@Nonnull final OneTimeToken token) {
        return Comparator
            .comparing(OneTimeToken::getToken)
            .thenComparing(OneTimeToken::getUserId)
            .thenComparing(OneTimeToken::getIssuedDateTime)
            .thenComparingLong(OneTimeToken::getId)
            .compare(this, token);
    }
This is {@link OneTimeToken}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/OneTimeToken.java