Class EphemeralPorts.Range

java.lang.Object
org.terracotta.utilities.test.net.EphemeralPorts.Range
Enclosing class:
EphemeralPorts

public static class EphemeralPorts.Range extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
    The first port assigned to the ephemeral/dynamic port range.
    int
    The last port assigned to the ephemeral/dynamic port range.
    boolean
    isInRange(int num)
     
     

    Methods inherited from class java.lang.Object

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

    • upper

      private final int upper
    • lower

      private final int lower
  • Constructor Details

    • Range

      Range(int lower, int upper)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object