Class PlayersTableJSONCreator


  • public class PlayersTableJSONCreator
    extends java.lang.Object
    Utility for creating jQuery Datatables JSON for a Players Table.

    See https://www.datatables.net/manual/data/orthogonal-data#HTML-5 for sort kinds

    • Constructor Detail

      • PlayersTableJSONCreator

        public PlayersTableJSONCreator​(java.util.List<TablePlayer> players,
                                       java.util.Map<java.util.UUID,​ExtensionTabData> extensionData,
                                       boolean openPlayerPageInNewTab,
                                       Formatters formatters,
                                       Locale locale)
      • PlayersTableJSONCreator

        public PlayersTableJSONCreator​(java.util.List<TablePlayer> players,
                                       java.util.Map<java.util.UUID,​ExtensionTabData> extensionData,
                                       boolean openPlayerPageInNewTab,
                                       Formatters formatters,
                                       Locale locale,
                                       boolean playersPage)
    • Method Detail

      • toJSONMap

        public java.util.Map<java.lang.String,​java.lang.Object> toJSONMap()