@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (karafPlatformModel == null ? 0 : karafPlatformModel.hashCode()); return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof LocalJMXServiceDescriptor)) { return false; } final LocalJMXServiceDescriptor other = (LocalJMXServiceDescriptor) obj; if (karafPlatformModel == null) { if (other.karafPlatformModel != null) { return false; } } else if (!karafPlatformModel.equals(other.karafPlatformModel)) { return false; } return true; }