public static boolean approximated(final CollateralDamagePotentialType obj // final VectorAttributeGroup vectorAttributeGroup ) { if (obj == null) { throw new IllegalArgumentException("null object"); } final Boolean approximated = obj.isApproximated(); return (approximated == null ? DEFAULT_APPROXIMATED : approximated); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof CollateralDamagePotentialType)) { return false; } final CollateralDamagePotentialType other = (CollateralDamagePotentialType) obj; if (approximated(this) == approximated(other)) { final String this_content = this.getContent(); final String other_content = other.getContent(); if (this_content == other_content || (this_content != null && this_content.equals(other_content))) { return true; } } return false; }