Package org.pcap4j.packet
Class Ssh2Boolean
- java.lang.Object
-
- org.pcap4j.packet.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
-
-
Field Summary
Fields Modifier and Type Field Description static Ssh2Boolean
FALSE
static Ssh2Boolean
TRUE
-
Constructor Summary
Constructors Constructor Description Ssh2Boolean(byte rawData)
Ssh2Boolean(byte[] rawData, int offset)
Constructor.
-
-
-
Field Detail
-
TRUE
public static final Ssh2Boolean TRUE
-
FALSE
public static final Ssh2Boolean FALSE
-
-
Constructor Detail
-
Ssh2Boolean
public Ssh2Boolean(byte rawData)
- Parameters:
rawData
- rawData
-
Ssh2Boolean
public Ssh2Boolean(byte[] rawData, int offset)
Constructor. This method validates the arguments byByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.- Parameters:
rawData
- rawDataoffset
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-