@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; HardwareConfiguration that = (HardwareConfiguration) o; if (processorCount != that.processorCount) return false; if (!actions.equals(that.actions)) return false; if (!virtualDisks.equals(that.virtualDisks)) return false; if (memory != null ? !memory.equals(that.memory) : that.memory != null) return false; if (!virtualNics.equals(that.virtualNics)) return false; return true; }