@SuppressWarnings("unchecked")
    public int compareTo(final Object otherObj) {
        if (otherObj == null) {
            return 1;
        } else {
            return value.compareTo(otherObj);
        }
    }