@Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (selector != null ? selector.hashCode() : 0);
        result = 31 * result + (recipients != null ? recipients.hashCode() : 0);
        result = 31 * result + (verify ? 1 : 0);
        result = 31 * result + (ignoreResult ? 1 : 0);
        return result;
    }
Capitalizes the given string by upper-casing its first letter.

@param str The string to capitalize.
@return The capitalized string.
messagebus/src/main/java/com/yahoo/messagebus/routing/HopSpec.java