Class SortTemplate

Version 1.1 - Updated on 6/16/2016

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.