Enum PlayerData.DataType

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
      private fr.royalpha.sheepwars.core.message.Message message  
      private java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> playerTop  
      private java.lang.String tableColumn  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DataType​(int id, fr.royalpha.sheepwars.core.message.Message.Messages msgEnum, java.lang.String tableColumn)  
    • Method Summary

      Modifier and Type Method Description
      int after()  
      int before()  
      void generateRanking()  
      static PlayerData.DataType getFromId​(int id)  
      fr.royalpha.sheepwars.core.message.Message getMessage()  
      java.util.Map<java.lang.String,​java.lang.Integer> getRanking​(int limit)  
      int getTopSize()  
      static PlayerData.DataType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PlayerData.DataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        private int id
      • message

        private fr.royalpha.sheepwars.core.message.Message message
      • tableColumn

        private java.lang.String tableColumn
      • playerTop

        private java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> playerTop
    • Constructor Detail

      • DataType

        private DataType​(int id,
                         fr.royalpha.sheepwars.core.message.Message.Messages msgEnum,
                         java.lang.String tableColumn)
    • Method Detail

      • values

        public static PlayerData.DataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlayerData.DataType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessage

        public fr.royalpha.sheepwars.core.message.Message getMessage()
      • getTopSize

        public int getTopSize()
      • after

        public int after()
      • before

        public int before()
      • generateRanking

        public void generateRanking()
      • getRanking

        public java.util.Map<java.lang.String,​java.lang.Integer> getRanking​(int limit)