Class Ssh2Boolean

java.lang.Object
org.pcap4j.packet.Ssh2Boolean
All Implemented Interfaces:
Serializable

public final class Ssh2Boolean extends Object implements Serializable
Since:
pcap4j 1.0.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • TRUE

      public static final Ssh2Boolean TRUE
    • FALSE

      public static final Ssh2Boolean FALSE
    • rawData

      private final byte rawData
  • Constructor Details

    • Ssh2Boolean

      public Ssh2Boolean(byte rawData)
      Parameters:
      rawData - rawData
    • Ssh2Boolean

      public Ssh2Boolean(byte[] rawData, int offset)
      Constructor. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
  • Method Details

    • getValue

      public boolean getValue()
      Returns:
      false if the raw data is 0x00; otherwise true.
    • length

      public int length()
      Returns:
      length
    • getRawData

      public byte[] getRawData()
      Returns:
      rawData
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object