Class TopListGenerator

java.lang.Object
yearreview.app.data.processor.toplist.TopListGenerator

public class TopListGenerator extends Object
Generates a TopList of TopListElements by sorting them by their associated Value.
Author:
ColdStone37
  • Field Details

  • Constructor Details

    • TopListGenerator

      public TopListGenerator(TopListAdapter adapter, int topListLength, ValueType sortingValue)
      Constructs a new TopListGenerator from an Adapter and a length.
      Parameters:
      adapter - Adapter to use for getting the data from a DataSource
      topListLength - Length of the TopList to generate
      sortingValue - type of Value to sort by
  • Method Details