@Override
    public int compareTo(final KeyInfo other) {
        int retVal = 1;
        if (other != null) {
            if (this.name != null && other.name != null) {
                retVal = this.name.compareTo(other.name);
            } else if (this.name == null) {
                retVal = (other.name == null) ? 0 : -1;
            }
        }
        return retVal;
    }
@ Override public int compareTo ( final KeyInfo other ) { int retVal = 1 ; if ( other != null ) { if ( this . name != null && other . name != null ) { retVal = this . name . compareTo ( other . name ) ; } else if ( this . name == null ) { retVal = ( other . name == null ) ? 0 : - 1 ; } } return retVal ; }
{@inheritDoc}