/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }
/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { if (protocol != null && !protocol.hasCapability("WITHIN")) throw new SearchException("Server doesn't support YOUNGER searches"); Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }
/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { if (protocol != null && !protocol.hasCapability("WITHIN")) throw new SearchException("Server doesn't support YOUNGER searches"); Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }
/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { if (protocol != null && !protocol.hasCapability("WITHIN")) throw new SearchException("Server doesn't support YOUNGER searches"); Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }
/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { if (protocol != null && !protocol.hasCapability("WITHIN")) throw new SearchException("Server doesn't support YOUNGER searches"); Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }
/** * Generate argument for YoungerTerm. * * @param term the search term * @return the SEARCH Argument * @exception SearchException for failures * @since JavaMail 1.5.1 */ protected Argument younger(YoungerTerm term) throws SearchException { if (protocol != null && !protocol.hasCapability("WITHIN")) throw new SearchException("Server doesn't support YOUNGER searches"); Argument result = new Argument(); result.writeAtom("YOUNGER"); result.writeNumber(term.getInterval()); return result; }