Class CombinedIpBlock


  • public final class CombinedIpBlock
    extends IpBlock
    • Constructor Summary

      Constructors 
      Constructor Description
      CombinedIpBlock​(java.util.List<IpBlock> ipBlocks)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetAddress getAddressAtIndex​(java.math.BigInteger index)  
      int getMaskBits()
      Estimates the virtual mask bits of the combined block
      java.net.InetAddress getRandomAddress()  
      java.math.BigInteger getSize()  
      java.lang.Class getType()  
      • Methods inherited from class java.lang.Object

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

      • CombinedIpBlock

        public CombinedIpBlock​(java.util.List<IpBlock> ipBlocks)
    • Method Detail

      • getRandomAddress

        public java.net.InetAddress getRandomAddress()
        Specified by:
        getRandomAddress in class IpBlock
      • getAddressAtIndex

        public java.net.InetAddress getAddressAtIndex​(java.math.BigInteger index)
        Overrides:
        getAddressAtIndex in class IpBlock
      • getType

        public java.lang.Class getType()
        Specified by:
        getType in class IpBlock
      • getSize

        public java.math.BigInteger getSize()
        Specified by:
        getSize in class IpBlock
      • getMaskBits

        public int getMaskBits()
        Estimates the virtual mask bits of the combined block
        Specified by:
        getMaskBits in class IpBlock
        Returns:
        mask bits