SortTemplate

Class SortTemplate

Version 1.8 - Updated on 06/16/2017

public class SortTemplate

Helper class for sorting getSearch(SearchTemplate, SortTemplate, Integer, Integer) results.

1) To sort by file name A-Z:

SortTemplate sort = new SortTemplate.Builder().sortAsc(SortType.name).build();

2) To sort for file extension ascending, then by file name descending:

SortTemplate sort = new SortTemplate.Builder().sortAsc(SortType.extension).sortDesc(SortType.name).build();

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.