@Override
    @JsonIgnore
    public int compareTo(final Ticket o) {
        return getId().compareTo(o.getId());
    }
Ticket implementation that encodes a source ticket and stores the encoded
representation internally.

@author Misagh Moayyed
@since 4.2
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/registry/DefaultEncodedTicket.java