Enum Class Library

java.lang.Object
java.lang.Enum<Library>
me.remigio07.chatplugin.api.common.util.Library
All Implemented Interfaces:
Serializable, Comparable<Library>, Constable

public enum Library extends Enum<Library>
Represents the libraries used by ChatPlugin.
  • Enum Constant Details

  • Method Details

    • values

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

      public static Library valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Gets this library's name.
      Returns:
      Library's name
    • getClazz

      public String getClazz()
      Gets one of this library's classes.
      Returns:
      A random class
    • getFileName

      public String getFileName()
      Gets this library's JAR file's name.
      Returns:
      Library's file name
    • getMD5Hash

      public String getMD5Hash()
      Gets this library's MD5 hash.

      Will return null if this library does not offer a MD5 hash to check.

      Returns:
      Library's MD5 hash
    • getRelocation

      public Library.Relocation getRelocation()
      Gets this library's relocation data.

      Will return null if this library does not need to be relocated.

      Returns:
      Library's relocation data
    • getURL

      public URL getURL()
      Gets this library's download URL.
      Returns:
      Library's URL