Module inet.ipaddr
Package inet.ipaddr

Class PrefixBlockAllocator.AllocatedBlock<E extends IPAddress>

  • Type Parameters:
    E - the address type
    Enclosing class:
    PrefixBlockAllocator<E extends IPAddress>

    public static class PrefixBlockAllocator.AllocatedBlock<E extends IPAddress>
    extends java.lang.Object
    Represents a block of addresses allocated for assignment to hosts.
    Author:
    scfoley
    • Field Summary

      Fields 
      Modifier and Type Field Description
      E block
      The allocated prefix block.
      java.math.BigInteger blockSize
      The number of requested addresses.
      int reservedCount
      The number of reserved addresses.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.math.BigInteger getCount()
      Returns the total number of addresses within the block.
      java.lang.String toString()
      Returns a string representation of the allocated block.
      • Methods inherited from class java.lang.Object

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

      • blockSize

        public final java.math.BigInteger blockSize
        The number of requested addresses.
      • block

        public final E extends IPAddress block
        The allocated prefix block.
      • reservedCount

        public final int reservedCount
        The number of reserved addresses.
    • Method Detail

      • getCount

        public java.math.BigInteger getCount()
        Returns the total number of addresses within the block. blockSize + reservedCount will not exceed this value.
        Returns:
      • toString

        public java.lang.String toString()
        Returns a string representation of the allocated block.
        Overrides:
        toString in class java.lang.Object