/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return the permanent flags supported by the server. */ @Override public synchronized Flags getPermanentFlags() { if (permanentFlags == null) return null; return (Flags)(permanentFlags.clone()); }
/** * Return the permanent flags supported by the server. */ public synchronized Flags getPermanentFlags() { if (permanentFlags == null) return null; return (Flags)(permanentFlags.clone()); }
/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return a <code>Flags</code> object containing the flags for * this message. <p> * * Note that a clone of the internal Flags object is returned, so * modifying the returned Flags object will not affect the flags * of this message. * * @return Flags object containing the flags for this message * @exception MessagingException for failures * @see javax.mail.Flags */ public synchronized Flags getFlags() throws MessagingException { return (Flags)flags.clone(); }
/** * Return a <code>Flags</code> object containing the flags for * this message. <p> * * Note that a clone of the internal Flags object is returned, so * modifying the returned Flags object will not affect the flags * of this message. * * @return Flags object containing the flags for this message * @exception MessagingException for failures * @see javax.mail.Flags */ @Override public synchronized Flags getFlags() throws MessagingException { return (Flags)flags.clone(); }
/** * Set the specified flags on this message to the specified value. * * @param newFlags the flags to be set * @param set the value to be set */ public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException { Flags oldFlags = (Flags)flags.clone(); super.setFlags(newFlags, set); if (!flags.equals(oldFlags)) folder.notifyMessageChangedListeners( MessageChangedEvent.FLAGS_CHANGED, this); }
/** * Set the specified flags on this message to the specified value. * * @param newFlags the flags to be set * @param set the value to be set */ @Override public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException { Flags oldFlags = (Flags)flags.clone(); super.setFlags(newFlags, set); if (!flags.equals(oldFlags)) folder.notifyMessageChangedListeners( MessageChangedEvent.FLAGS_CHANGED, this); }
/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return a copy the flags associated with this message. * * @return a copy of the flags for this message * @throws MessagingException if there was a problem accessing the Store */ public synchronized Flags getFlags() throws MessagingException { return (Flags) flags.clone(); }
/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return the permanent flags supported by the server. */ public synchronized Flags getPermanentFlags() { return (Flags)(permanentFlags.clone()); }
/** * Return the permanent flags supported by the server. */ @Override public synchronized Flags getPermanentFlags() { if (permanentFlags == null) return null; return (Flags)(permanentFlags.clone()); }
/** * Return the permanent flags supported by the server. */ @Override public synchronized Flags getPermanentFlags() { if (permanentFlags == null) return null; return (Flags)(permanentFlags.clone()); }
/** * Return the Flags to test. */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return the Flags to test. */ public Flags getFlags() { return (Flags)flags.clone(); }
/** * Return the permanent flags supported by the server. */ @Override public synchronized Flags getPermanentFlags() { if (permanentFlags == null) return null; return (Flags)(permanentFlags.clone()); }
/** * Return the Flags to test. * * @return the flags */ public Flags getFlags() { return (Flags)flags.clone(); }
public Parts copy() { Parts p = Parts.fullName(fullName).baseName(baseName).size(size).timeMillis(time); p.flags = (Flags) this.flags.clone(); return p; } }