@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((labels == null) ? 0 : labels.hashCode()); result = prime * result + ((resource == null) ? 0 : resource.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DefaultAction other = (DefaultAction) obj; if (labels == null) { if (other.labels != null) return false; } else if (!labels.equals(other.labels)) return false; if (resource == null) { if (other.resource != null) return false; } else if (!resource.equals(other.resource)) return false; if (type == null) { if (other.type != null) return false; } else if (!type.equals(other.type)) return false; return true; }