Class EphemeralPorts.Range

  • Enclosing class:
    EphemeralPorts

    public static class EphemeralPorts.Range
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int lower  
      private int upper  
    • Constructor Summary

      Constructors 
      Constructor Description
      Range​(int lower, int upper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLower()
      The first port assigned to the ephemeral/dynamic port range.
      int getUpper()
      The last port assigned to the ephemeral/dynamic port range.
      boolean isInRange​(int num)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • upper

        private final int upper
      • lower

        private final int lower
    • Constructor Detail

      • Range

        Range​(int lower,
              int upper)
    • Method Detail

      • getUpper

        public int getUpper()
        The last port assigned to the ephemeral/dynamic port range.
        Returns:
        the upper bound of the ephemeral port range
      • getLower

        public int getLower()
        The first port assigned to the ephemeral/dynamic port range.
        Returns:
        the lower bound of the ephemeral port range
      • isInRange

        public boolean isInRange​(int num)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object