Class IpV4Rfc791Tos

java.lang.Object
org.pcap4j.packet.IpV4Rfc791Tos
All Implemented Interfaces:
Serializable, IpV4Packet.IpV4Tos

public final class IpV4Rfc791Tos extends Object implements IpV4Packet.IpV4Tos
Since:
pcap4j 0.9.11
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • 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 Details

    • IpV4Rfc791Tos

      private IpV4Rfc791Tos(byte value)
    • IpV4Rfc791Tos

      private IpV4Rfc791Tos(IpV4Rfc791Tos.Builder builder)
  • Method Details

    • 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 interface IpV4Packet.IpV4Tos
      Returns:
      value
    • getBuilder

      public IpV4Rfc791Tos.Builder getBuilder()
      Returns:
      a new Builder object populated with this object's fields.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object