Enum Class Dir

java.lang.Object
java.lang.Enum<Dir>
io.github.mahmoudimus.quic.connection.Dir
All Implemented Interfaces:
Serializable, Comparable<Dir>, Constable

public enum Dir extends Enum<Dir>
Whether a stream carries data in both directions or only from its initiator (RFC 9000 section 2.1).
  • Enum Constant Details

    • BI

      public static final Dir BI
      Bidirectional: data flows both ways.
    • UNI

      public static final Dir UNI
      Unidirectional: data flows from the initiator only.
  • Method Details

    • values

      public static Dir[] 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 Dir 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