Class TopListItem

java.lang.Object
yearreview.app.data.processor.toplist.TopListItem
All Implemented Interfaces:
TopListCompatibleItem

public class TopListItem extends Object implements TopListCompatibleItem
Basic Implementation of TopListCompatibleItem that can be used if no special functionality is needed.
Author:
ColdStone37
  • Field Details

    • mainText

      private final String mainText
      Main text to display for the item.
    • subText

      private final String subText
      Sub text to display for the item.
    • img

      private final ImageReference img
      Image to display alongside the item.
  • Constructor Details

    • TopListItem

      public TopListItem(String main, String sub, ImageReference img)
      Constructs a TopListItem from all Values.
      Parameters:
      main - main text to display
      sub - sub text to display
      img - image to display alongside
    • TopListItem

      public TopListItem(String main, String sub)
      Constructs a TopListItem with only text given
      Parameters:
      main - main text to display
      sub - sub text to display
    • TopListItem

      public TopListItem(String main)
      Constructs a TopListItem with only main text given
      Parameters:
      main - main text to display
  • Method Details