boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SemanticLabel label = (SemanticLabel)o; return myName.equals(label.myName) && myType.equals(label.myType) && Objects.equals(myVersion, label.myVersion); }