public Iterator < IPv6Network > split ( IPv6NetworkMask size ) { if ( size . asPrefixLength ( ) < this . getNetmask ( ) . asPrefixLength ( ) ) throw new IllegalArgumentException ( String . format ( "Can not split a network of size %s in subnets of larger size %s" , this . getNetmask ( ) . asPrefixLength ( ) , size . asPrefixLength ( ) ) ) ; return new IPv6NetworkSplitsIterator ( size ) ; }
Split a network in smaller subnets of a given size .