Search in sources :

Example 1 with Builder

use of org.molgenis.api.model.Order.Builder in project molgenis by molgenis.

the class AttributeRequestMapperImpl method mapOrderByItem.

private Order mapOrderByItem(Map<String, String> orderbyItem) {
    Builder orderBuilder = Order.builder().setId(orderbyItem.get("id"));
    String order = orderbyItem.get("order");
    if (order != null) {
        orderBuilder.setDirection(Direction.valueOf(order));
    }
    return orderBuilder.build();
}
Also used : Builder(org.molgenis.api.model.Order.Builder)

Aggregations

Builder (org.molgenis.api.model.Order.Builder)1