Module inet.ipaddr
Package inet.ipaddr

Class PrefixBlockAllocator.AllocatedBlock<E extends IPAddress>

java.lang.Object
inet.ipaddr.PrefixBlockAllocator.AllocatedBlock<E>
Type Parameters:
E - the address type
Enclosing class:
PrefixBlockAllocator<E extends IPAddress>

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

    • blockSize

      public final 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 Details

    • getCount

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

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