Class IpAddressTools


  • public final class IpAddressTools
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IpAddressTools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Tuple<java.net.Inet4Address,​java.net.Inet6Address> getRandomAddressesFromHost​(org.apache.http.HttpHost host)  
      static <T> T getRandomFromList​(java.util.List<T> list)  
      • Methods inherited from class java.lang.Object

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

      • IpAddressTools

        public IpAddressTools()
    • Method Detail

      • getRandomAddressesFromHost

        public static Tuple<java.net.Inet4Address,​java.net.Inet6Address> getRandomAddressesFromHost​(org.apache.http.HttpHost host)
                                                                                                   throws org.apache.http.HttpException
        Throws:
        org.apache.http.HttpException
      • getRandomFromList

        public static <T> T getRandomFromList​(java.util.List<T> list)