Class Ssh2Boolean

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Ssh2Boolean
    extends java.lang.Object
    implements java.io.Serializable
    Since:
    pcap4j 1.0.1
    See Also:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object