Class SortResultDTO
- java.lang.Object
-
- pl.put.poznan.transformer.rest.dto.SortResultDTO
-
public class SortResultDTO extends Object
Data Transfer Object for sorting results. Used to form aSortResponseDTOobject.
-
-
Constructor Summary
Constructors Constructor Description SortResultDTO()Constructor for creating an emptySortResponseDTOto be filled out later.SortResultDTO(String algorithm, Long timeNs, Boolean complete, List<List<Object>> data, String error)A full constructor for filling every member at once.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()BooleangetComplete()List<List<Object>>getData()StringgetError()LonggetTimeNs()voidsetAlgorithm(String algorithm)voidsetComplete(Boolean complete)voidsetData(List<List<Object>> data)voidsetError(String error)voidsetTimeNs(Long timeNs)
-
-
-
Constructor Detail
-
SortResultDTO
public SortResultDTO()
Constructor for creating an emptySortResponseDTOto be filled out later.
-
SortResultDTO
public SortResultDTO(String algorithm, Long timeNs, Boolean complete, List<List<Object>> data, String error)
A full constructor for filling every member at once.- Parameters:
algorithm- aStringcontaining the name of the algorithm used.timeNs- the time taken by the sorting run.complete- a boolean value of whether sorting was completed in the given number of iterations.data- aListofListofObjectcontaining sorted data.error- aStringcontaining error messages generated during sorting.
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String algorithm)
-
getTimeNs
public Long getTimeNs()
-
setTimeNs
public void setTimeNs(Long timeNs)
-
getError
public String getError()
-
setError
public void setError(String error)
-
getComplete
public Boolean getComplete()
-
setComplete
public void setComplete(Boolean complete)
-
-