Package org.apache.james.mailbox.model.SearchQuery

Examples of org.apache.james.mailbox.model.SearchQuery.Sort


   
    @SuppressWarnings("unchecked")
    public static Comparator<Message<?>> create(List<Sort> sorts) {
        List<Comparator<?>> comps = new ArrayList<Comparator<?>>();
        for (int i = 0; i < sorts.size(); i++) {
            Sort sort = sorts.get(i);
            boolean reverse = sort.isReverse();
            Comparator<Message<?>> comparator = null;
           
            switch (sort.getSortClause()) {
            case Arrival:
                comparator = InternalDateComparator.internalDate(reverse);
                break;
            case MailboxCc:
                comparator = HeaderMailboxComparator.cc(reverse);
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.model.SearchQuery.Sort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.