Enum Class WireType

java.lang.Object
java.lang.Enum<WireType>
org.openstreetmap.josm.data.protobuf.WireType
All Implemented Interfaces:
Serializable, Comparable<WireType>, Constable

public enum WireType extends Enum<WireType>
The WireTypes
Since:
17862
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • WireType

      private WireType(int value)
  • Method Details

    • values

      public static WireType[] 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 WireType 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
    • getTypeRepresentation

      public byte getTypeRepresentation()
      Get the type representation (byte form)
      Returns:
      The wire type byte representation
    • getAllValues

      static WireType[] getAllValues()
      Get a pre-calculated array of all WireType values.
      Returns:
      An array of values, meant as a drop-in replacement for values() where the array is not modified! This can significantly reduce allocations, as there is no defensive array copy.