Enum AchievementDiary

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AchievementDiary>

    public enum AchievementDiary
    extends java.lang.Enum<AchievementDiary>
    • Method Detail

      • values

        public static AchievementDiary[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AchievementDiary c : AchievementDiary.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AchievementDiary 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
      • isEasyComplete

        public boolean isEasyComplete()
      • isMediumComplete

        public boolean isMediumComplete()
      • isHardComplete

        public boolean isHardComplete()
      • isEliteComplete

        public boolean isEliteComplete()
      • isComplete

        public boolean isComplete​(@NonNull
                                  @NonNull AchievementDiary.Difficulty difficulty)
        Checks if this achievement diary is completed on the given difficulty.
        Parameters:
        difficulty - difficulty of the achievement diary.
        Returns:
        true if complete, false otherwise