- 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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Ssh2BooleanFALSEprivate byterawDataprivate static longserialVersionUIDstatic Ssh2BooleanTRUE
-
Constructor Summary
Constructors Constructor Description Ssh2Boolean(byte rawData)Ssh2Boolean(byte[] rawData, int offset)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getRawData()booleangetValue()inthashCode()intlength()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
TRUE
public static final Ssh2Boolean TRUE
-
FALSE
public static final Ssh2Boolean FALSE
-
rawData
private final byte rawData
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-