com.wirefreethought.geodb.client.model.GeoDbSort Maven / Gradle / Ivy
package com.wirefreethought.geodb.client.model;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
public class GeoDbSort
{
@AllArgsConstructor
@Getter
public static class SortField
{
private String name;
private boolean reverse;
}
@Builder
public GeoDbSort(SortField... fields)
{
this.fields = Collections.unmodifiableList(Arrays.asList(fields));
}
@Getter
private List fields;
}