Class PortsRange

java.lang.Object
org.elasticsearch.common.transport.PortsRange

public class PortsRange
extends java.lang.Object
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static interface  PortsRange.PortCallback  
  • Constructor Summary

    Constructors 
    Constructor Description
    PortsRange​(java.lang.String portRange)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getPortRangeString()  
    boolean iterate​(PortsRange.PortCallback callback)  
    int[] ports()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • PortsRange

      public PortsRange​(java.lang.String portRange)
  • Method Details

    • getPortRangeString

      public java.lang.String getPortRangeString()
    • ports

      public int[] ports() throws java.lang.NumberFormatException
      Throws:
      java.lang.NumberFormatException
    • iterate

      public boolean iterate​(PortsRange.PortCallback callback) throws java.lang.NumberFormatException
      Throws:
      java.lang.NumberFormatException
    • toString

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