Esempio n. 1
0
 @Override
 public int hashCode() {
   int result = (selected ? 1 : 0);
   result = 31 * result + (nativeCapability ? 1 : 0);
   result = 31 * result + (value != null ? value.hashCode() : 0);
   result = 31 * result + (tooltipKey != null ? tooltipKey.hashCode() : 0);
   result = 31 * result + (capability != null ? capability.hashCode() : 0);
   return result;
 }
Esempio n. 2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof CapabilityDto)) return false;

    CapabilityDto that = (CapabilityDto) o;

    if (nativeCapability != that.nativeCapability) return false;
    if (selected != that.selected) return false;
    if (capability != null ? !capability.equals(that.capability) : that.capability != null)
      return false;
    if (tooltipKey != null ? !tooltipKey.equals(that.tooltipKey) : that.tooltipKey != null)
      return false;
    if (value != null ? !value.equals(that.value) : that.value != null) return false;

    return true;
  }