public class SortParamSupport extends Object
Pageable
to its String
-representation and vice versa.Sort sort = new Sort(new Order(Direction.DESC, "name"), new Order(Direction.ASC, "id")); PageRequest pageable = new PageRequest(1, 20, sort); org.junit.Assert.assertEquals("name:desc;id:asc;page:1;pageSize:20", sortParamSupport.getSortString(pageable));
Copyright © 2011–2021 aiticon GmbH. All rights reserved.