Class SortRequestDTO
- java.lang.Object
-
- pl.put.poznan.transformer.rest.dto.SortRequestDTO
-
public class SortRequestDTO extends Object
Data Transfer Object for a sorting request. Processed bySortService.
-
-
Constructor Summary
Constructors Constructor Description SortRequestDTO()Constructor for making an emptySortRequestDTOobject to be filled later.SortRequestDTO(List<List<Object>> data, int column, List<String> algorithms, String order, Integer maxIter, String scramble)Constructor for making aSortRequestDTOobject ready to be processed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAlgorithms()intgetColumn()List<List<Object>>getData()IntegergetMaxIter()StringgetOrder()StringgetScramble()voidsetAlgorithms(List<String> algorithms)voidsetColumn(int column)voidsetData(List<List<Object>> data)voidsetMaxIter(Integer maxIter)voidsetOrder(String order)voidsetScramble(String scramble)
-
-
-
Constructor Detail
-
SortRequestDTO
public SortRequestDTO()
Constructor for making an emptySortRequestDTOobject to be filled later.
-
SortRequestDTO
public SortRequestDTO(List<List<Object>> data, int column, List<String> algorithms, String order, Integer maxIter, String scramble)
Constructor for making aSortRequestDTOobject ready to be processed.- Parameters:
data- aListofListofObjectcontaining data to be sorted.column- index of the column to be used as sorting criteria.algorithms- aListofStringnames of algorithms to be tested.order- aStringcontaining the direction in which data will be sorted.maxIter- maximum number of iterations.scramble- how to scramble the data.
-
-
Method Detail
-
getColumn
public int getColumn()
-
setColumn
public void setColumn(int column)
-
getOrder
public String getOrder()
-
setOrder
public void setOrder(String order)
-
getMaxIter
public Integer getMaxIter()
-
setMaxIter
public void setMaxIter(Integer maxIter)
-
getScramble
public String getScramble()
-
setScramble
public void setScramble(String scramble)
-
-