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
    Author:
    Kaito Yamada
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Ssh2Boolean​(byte rawData)  
      Ssh2Boolean​(byte[] rawData, int offset)
      Constructor.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      byte[] getRawData()  
      boolean getValue()  
      int hashCode()  
      int length()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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