Code example for Map

Methods: hashCode

0
    public int hashCode() { 
        int result = mechanism.hashCode();
        result = 31 * result + userName.hashCode();
        result = 31 * result + source.hashCode();
        result = 31 * result + (password != null ? Arrays.hashCode(password) : 0);
        result = 31 * result + mechanismProperties.hashCode();
        return result;
    } 
 
    @Override 
    public String toString() {
        return "MongoCredential{" + 
                "mechanism='" + mechanism + '\'' +
                ", userName='" + userName + '\'' +
                ", source='" + source + '\'' +
                ", password=<hidden>"  + 
                ", mechanismProperties=" + mechanismProperties +
                '}'; 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE