private NodeAttributeKeyPBImpl convertFromProtoFormat( NodeAttributeKeyProto attributeKeyProto) { return new NodeAttributeKeyPBImpl(attributeKeyProto); }
@Override public String toString() { return "Prefix-" + getAttributePrefix() + " :Name-" + getAttributeName(); } }
private NodeAttributeKeyProto convertToProtoFormat( NodeAttributeKey attributeKey) { return ((NodeAttributeKeyPBImpl) attributeKey).getProto(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (obj instanceof NodeAttributeKey) { NodeAttributeKey other = (NodeAttributeKey) obj; if (!compare(getAttributePrefix(), other.getAttributePrefix())) { return false; } if (!compare(getAttributeName(), other.getAttributeName())) { return false; } return true; } return false; }
@Override public void setAttributePrefix(String attributePrefix) { maybeInitBuilder(); if (attributePrefix == null) { builder.clearAttributePrefix(); return; } builder.setAttributePrefix(attributePrefix); }
@Override public void setAttributeName(String attributeName) { maybeInitBuilder(); if (attributeName == null) { builder.clearAttributeName(); return; } builder.setAttributeName(attributeName); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getAttributePrefix() == null) ? 0 : getAttributePrefix().hashCode()); result = prime * result + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); return result; }
private NodeAttributeKeyProto convertToProtoFormat( NodeAttributeKey attributeKey) { return ((NodeAttributeKeyPBImpl)attributeKey).getProto(); }
private NodeAttributeKeyPBImpl convertFromProtoFormat( NodeAttributeKeyProto attributeKeyProto) { return new NodeAttributeKeyPBImpl(attributeKeyProto); }
private NodeAttributeKeyProto convertToProtoFormat(NodeAttributeKey t) { return ((NodeAttributeKeyPBImpl) t).getProto(); }
private NodeAttributeKeyPBImpl convertFromProtoFormat( NodeAttributeKeyProto p) { return new NodeAttributeKeyPBImpl(p); }
private NodeAttributeKeyProto convertToProtoFormat(NodeAttributeKey t) { return ((NodeAttributeKeyPBImpl) t).getProto(); }
private NodeAttributeKey convertFromProtoFormat(NodeAttributeKeyProto p) { return new NodeAttributeKeyPBImpl(p); }