@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } ExternalId other = (ExternalId) obj; return eq(label, other.label) && eq(rel, other.rel) && eq(value, other.value); }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the id type. * * @return whether it has the id type */ public boolean hasRel() { return getRel() != null; }
/** * Immutable constructor. * * @param label label. * @param rel id type. * @param value value. */ public ExternalId(String label, String rel, String value) { super(); setLabel(label); setRel(rel); setValue(value); setImmutable(true); }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
false)); extProfile.declare(BasePersonEntry.class, ExternalId.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Gender.class); extProfile.declare(BasePersonEntry.class, Hobby.getDefaultDescription(false,
/** * Immutable constructor. * * @param label label. * @param rel id type. * @param value value. */ public ExternalId(String label, String rel, String value) { super(); setLabel(label); setRel(rel); setValue(value); setImmutable(true); }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
false)); extProfile.declare(BasePersonEntry.class, ExternalId.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Gender.class); extProfile.declare(BasePersonEntry.class, Hobby.getDefaultDescription(false,
/** * Immutable constructor. * * @param label label. * @param rel id type. * @param value value. */ public ExternalId(String label, String rel, String value) { super(); setLabel(label); setRel(rel); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } ExternalId other = (ExternalId) obj; return eq(label, other.label) && eq(rel, other.rel) && eq(value, other.value); }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the id type. * * @return whether it has the id type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
false)); extProfile.declare(BasePersonEntry.class, ExternalId.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, FileAs.class); extProfile.declare(BasePersonEntry.class, Gender.class);
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } ExternalId other = (ExternalId) obj; return eq(label, other.label) && eq(rel, other.rel) && eq(value, other.value); }
/** * Returns whether it has the id type. * * @return whether it has the id type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }