Class TcpSackOption.Sack

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    TcpSackOption

    public static final class TcpSackOption.Sack
    extends java.lang.Object
    implements java.io.Serializable
    Since:
    pcap4j 1.2.0
    Author:
    Kaito Yamada
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Sack​(int leftEdge, int rightEdge)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int getLeftEdge()  
      long getLeftEdgeAsLong()  
      int getRightEdge()  
      long getRightEdgeAsLong()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sack

        public Sack​(int leftEdge,
                    int rightEdge)
        Parameters:
        leftEdge - leftEdge
        rightEdge - rightEdge
    • Method Detail

      • getLeftEdge

        public int getLeftEdge()
        Returns:
        leftEdge
      • getLeftEdgeAsLong

        public long getLeftEdgeAsLong()
        Returns:
        leftEdge
      • getRightEdge

        public int getRightEdge()
        Returns:
        rightEdge
      • getRightEdgeAsLong

        public long getRightEdgeAsLong()
        Returns:
        rightEdge
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object