Class SortResultDTO


  • public class SortResultDTO
    extends Object
    Data Transfer Object for sorting results. Used to form a SortResponseDTO object.
    • Constructor Detail

      • SortResultDTO

        public SortResultDTO()
        Constructor for creating an empty SortResponseDTO to 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 - a String containing 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 - a List of List of Object containing sorted data.
        error - a String containing 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)