/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Language other = (Language) obj; return eq(code, other.code) && eq(label, other.label); }
/** * Returns whether it has the code. * * @return whether it has the code */ public boolean hasCode() { return getCode() != null; }
/** * Immutable constructor. * * @param code code. * @param label label. */ public Language(String code, String label) { super(); setCode(code); setLabel(label); setImmutable(true); }
/** * Sets the label. * * @param label label or <code>null</code> to reset */ public void setLabel(String label) { throwExceptionIfImmutable(); this.label = label; }
true)); extProfile.declare(BasePersonEntry.class, Language.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, MaidenName.class); extProfile.declare(BasePersonEntry.class, Mileage.class);
/** * Immutable constructor. * * @param code code. * @param label label. */ public Language(String code, String label) { super(); setCode(code); setLabel(label); setImmutable(true); }
/** * Sets the label. * * @param label label or <code>null</code> to reset */ public void setLabel(String label) { throwExceptionIfImmutable(); this.label = label; }
true)); extProfile.declare(BasePersonEntry.class, Language.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, MaidenName.class); extProfile.declare(BasePersonEntry.class, Mileage.class);
/** * Immutable constructor. * * @param code code. * @param label label. */ public Language(String code, String label) { super(); setCode(code); setLabel(label); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Language other = (Language) obj; return eq(code, other.code) && eq(label, other.label); }
/** * Sets the code. * * @param code code or <code>null</code> to reset */ public void setCode(String code) { throwExceptionIfImmutable(); this.code = code; }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the code. * * @return whether it has the code */ public boolean hasCode() { return getCode() != null; }
true)); extProfile.declare(BasePersonEntry.class, Language.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, MaidenName.class); extProfile.declare(BasePersonEntry.class, Mileage.class);
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Language other = (Language) obj; return eq(code, other.code) && eq(label, other.label); }
/** * Sets the code. * * @param code code or <code>null</code> to reset */ public void setCode(String code) { throwExceptionIfImmutable(); this.code = code; }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the code. * * @return whether it has the code */ public boolean hasCode() { return getCode() != null; }