- 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpV4Rfc791Tos.Builder
-
Field Summary
Fields Modifier and Type Field Description private booleaneighthBitprivate booleanhighReliabilityprivate booleanhighThroughputprivate booleanlowDelayprivate IpV4TosPrecedenceprecedenceprivate static longserialVersionUIDprivate booleanseventhBit
-
Constructor Summary
Constructors Modifier Constructor Description privateIpV4Rfc791Tos(byte value)privateIpV4Rfc791Tos(IpV4Rfc791Tos.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)IpV4Rfc791Tos.BuildergetBuilder()booleangetEighthBit()IpV4TosPrecedencegetPrecedence()booleangetSeventhBit()inthashCode()booleanisHighReliability()booleanisHighThroughput()booleanisLowDelay()static IpV4Rfc791TosnewInstance(byte value)java.lang.StringtoString()bytevalue()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
precedence
private final IpV4TosPrecedence precedence
-
lowDelay
private final boolean lowDelay
-
highThroughput
private final boolean highThroughput
-
highReliability
private final boolean highReliability
-
seventhBit
private final boolean seventhBit
-
eighthBit
private final boolean eighthBit
-
-
Constructor Detail
-
IpV4Rfc791Tos
private IpV4Rfc791Tos(byte value)
-
IpV4Rfc791Tos
private IpV4Rfc791Tos(IpV4Rfc791Tos.Builder builder)
-
-
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:
valuein 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:
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
-
-