Module swim.ws
Package swim.ws

Enum Class WsOpcode

All Implemented Interfaces:
Serializable, Comparable<WsOpcode>, Constable, Debug

public enum WsOpcode extends Enum<WsOpcode> implements Debug
  • Enum Constant Details

    • CONTINUATION

      public static final WsOpcode CONTINUATION
    • TEXT

      public static final WsOpcode TEXT
    • BINARY

      public static final WsOpcode BINARY
    • RESERVED_3

      public static final WsOpcode RESERVED_3
    • RESERVED_4

      public static final WsOpcode RESERVED_4
    • RESERVED_5

      public static final WsOpcode RESERVED_5
    • RESERVED_6

      public static final WsOpcode RESERVED_6
    • RESERVED_7

      public static final WsOpcode RESERVED_7
    • CLOSE

      public static final WsOpcode CLOSE
    • PING

      public static final WsOpcode PING
    • PONG

      public static final WsOpcode PONG
    • RESERVED_B

      public static final WsOpcode RESERVED_B
    • RESERVED_C

      public static final WsOpcode RESERVED_C
    • RESERVED_D

      public static final WsOpcode RESERVED_D
    • RESERVED_E

      public static final WsOpcode RESERVED_E
    • RESERVED_F

      public static final WsOpcode RESERVED_F
  • Field Details

    • code

      public final int code
  • Method Details

    • values

      public static WsOpcode[] 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 WsOpcode 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
    • isData

      public boolean isData()
    • isControl

      public boolean isControl()
    • isReserved

      public boolean isReserved()
    • isContinuation

      public boolean isContinuation()
    • isText

      public boolean isText()
    • isBinary

      public boolean isBinary()
    • isClose

      public boolean isClose()
    • isPing

      public boolean isPing()
    • isPong

      public boolean isPong()
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Returns:
      the continuation of the output.
    • from

      public static WsOpcode from(int code)