Package org.pcap4j.packet
Class IpV4Rfc791Tos
- java.lang.Object
-
- org.pcap4j.packet.IpV4Rfc791Tos
-
- All Implemented Interfaces:
java.io.Serializable
,IpV4Packet.IpV4Tos
public final class IpV4Rfc791Tos extends java.lang.Object implements IpV4Packet.IpV4Tos
- Since:
- pcap4j 0.9.11
- Author:
- Kaito Yamada
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpV4Rfc791Tos.Builder
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
IpV4Rfc791Tos.Builder
getBuilder()
boolean
getEighthBit()
IpV4TosPrecedence
getPrecedence()
boolean
getSeventhBit()
int
hashCode()
boolean
isHighReliability()
boolean
isHighThroughput()
boolean
isLowDelay()
static IpV4Rfc791Tos
newInstance(byte value)
java.lang.String
toString()
byte
value()
-
-
-
Method Detail
-
newInstance
public static IpV4Rfc791Tos newInstance(byte value)
- Parameters:
value
- value- Returns:
- a new IpV4Rfc791Tos object.
-
getPrecedence
public IpV4TosPrecedence getPrecedence()
- Returns:
- precedence
-
isLowDelay
public boolean isLowDelay()
- Returns:
- lowDelay
-
isHighThroughput
public boolean isHighThroughput()
- Returns:
- highThroughput
-
isHighReliability
public boolean isHighReliability()
- Returns:
- highReliability
-
getSeventhBit
public boolean getSeventhBit()
- Returns:
- seventhBit
-
getEighthBit
public boolean getEighthBit()
- Returns:
- eighthBit
-
value
public byte value()
- Specified by:
value
in interfaceIpV4Packet.IpV4Tos
- Returns:
- value
-
getBuilder
public IpV4Rfc791Tos.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
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
-
-