Enum Class DataCodecType

java.lang.Object
java.lang.Enum<DataCodecType>
org.geysermc.floodgate.core.crypto.DataCodecType
All Implemented Interfaces:
Serializable, Comparable<DataCodecType>, Constable

public enum DataCodecType extends Enum<DataCodecType>
  • Enum Constant Details

  • Method Details

    • values

      public static DataCodecType[] 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 DataCodecType 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
    • keyProducer

      public KeyProducer keyProducer()
      Returns the KeyProducer instance for the given type.
    • keyCodec

      public KeyCodec<?> keyCodec()
      Returns the KeyCodec instance for the given type.
    • dataCodec

      public DataCodec dataCodec()
      Returns a new DataCodec instance for the given type.
    • asymmetrical

      public boolean asymmetrical()
      Returns whether the given type is asymmetrical.
    • byName

      public static DataCodecType byName(String name)