@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CalendarLink other = (CalendarLink) obj; return eq(href, other.href) && eq(label, other.label) && eq(primary, other.primary) && eq(rel, other.rel); }
/** * Returns whether it has the URI of the calendar. * * @return whether it has the URI of the calendar */ public boolean hasHref() { return getHref() != null; }
/** * Returns whether it has the user defined calendar link label. * * @return whether it has the user defined calendar link label */ public boolean hasLabel() { return getLabel() != null; }
/** * Immutable constructor. * * @param href URI of the calendar. * @param label user defined calendar link label. * @param primary denotes primary calendar link. * @param rel known calendar link type. */ public CalendarLink(String href, String label, Boolean primary, Rel rel) { super(); setHref(href); setLabel(label); setPrimary(primary); setRel(rel); setImmutable(true); }
/** * Returns whether it has the known calendar link type. * * @return whether it has the known calendar link type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the denotes primary calendar link. * * @return whether it has the denotes primary calendar link */ public boolean hasPrimary() { return getPrimary() != null; }
extProfile.declare(BasePersonEntry.class, Birthday.class); extProfile.declare(BasePersonEntry.class, CalendarLink.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, DirectoryServer.class); extProfile.declare(BasePersonEntry.class,
/** * Immutable constructor. * * @param href URI of the calendar. * @param label user defined calendar link label. * @param primary denotes primary calendar link. * @param rel known calendar link type. */ public CalendarLink(String href, String label, Boolean primary, Rel rel) { super(); setHref(href); setLabel(label); setPrimary(primary); setRel(rel); setImmutable(true); }
/** * Returns whether it has the known calendar link type. * * @return whether it has the known calendar link type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the denotes primary calendar link. * * @return whether it has the denotes primary calendar link */ public boolean hasPrimary() { return getPrimary() != null; }
extProfile.declare(BasePersonEntry.class, Birthday.class); extProfile.declare(BasePersonEntry.class, CalendarLink.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, DirectoryServer.class); extProfile.declare(BasePersonEntry.class,
/** * Immutable constructor. * * @param href URI of the calendar. * @param label user defined calendar link label. * @param primary denotes primary calendar link. * @param rel known calendar link type. */ public CalendarLink(String href, String label, Boolean primary, Rel rel) { super(); setHref(href); setLabel(label); setPrimary(primary); setRel(rel); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CalendarLink other = (CalendarLink) obj; return eq(href, other.href) && eq(label, other.label) && eq(primary, other.primary) && eq(rel, other.rel); }
/** * Returns whether it has the known calendar link type. * * @return whether it has the known calendar link type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the URI of the calendar. * * @return whether it has the URI of the calendar */ public boolean hasHref() { return getHref() != null; }
/** * Returns whether it has the denotes primary calendar link. * * @return whether it has the denotes primary calendar link */ public boolean hasPrimary() { return getPrimary() != null; }
/** * Returns whether it has the user defined calendar link label. * * @return whether it has the user defined calendar link label */ public boolean hasLabel() { return getLabel() != null; }
extProfile.declare(BasePersonEntry.class, Birthday.class); extProfile.declare(BasePersonEntry.class, CalendarLink.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, DirectoryServer.class); extProfile.declare(BasePersonEntry.class,
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CalendarLink other = (CalendarLink) obj; return eq(href, other.href) && eq(label, other.label) && eq(primary, other.primary) && eq(rel, other.rel); }
/** * Returns whether it has the URI of the calendar. * * @return whether it has the URI of the calendar */ public boolean hasHref() { return getHref() != null; }