List of usage examples for javax.mail Flags equals
@Override public boolean equals(Object obj)
From source file:org.sourceforge.net.javamail4ews.store.EwsFolder.java
public synchronized Message[] search(SearchTerm paramSearchTerm) throws MessagingException { if (paramSearchTerm instanceof FlagTerm) { FlagTerm flagTerm = (FlagTerm) paramSearchTerm; Flags flags = flagTerm.getFlags(); if (flags.equals(new Flags(Flags.Flag.SEEN))) { try { return getUnreadMessage(0); } catch (Exception e) { throw new MessagingException(e.getMessage(), e); }//from w w w . j ava 2 s . c o m } } throw new MessagingException("Ews folder don't support search with search term " + paramSearchTerm); }