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
    See Also:
    Serialized Form
    • Field Detail

      • leftEdge

        private final int leftEdge
      • rightEdge

        private final int rightEdge
    • 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