/** * Equality test based attributes values * * @param other Value to compare */ public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof Restriction)) { return false; } final Restriction restrictionDto = (Restriction) other; if ((name == null && restrictionDto.getName() != null) || (name != null && !name.equals(restrictionDto.getName()))) { return false; } return true; }
default: throw new WikittyException("this kind of restriction is not supported : " + restriction.getName().toString());
default: throw new WikittyException("this kind of restriction is not supported : " + restriction.getName().toString());