Version 5.2.0
This version introduces methods for Java 8 functional-style operations.
- added stream methods for addresses, address sections, address segments, and ip address sequential ranges:
stream,prefixStream,prefixStream(int prefixLength),prefixBlockStream,prefixBlockStream(int prefixLength),blockStream(int segmentCount),sequentialBlockStream,segmentsStream - added corresponding spliterator methods:
spliterator,prefixSpliterator,prefixSpliterator(int prefixLength),prefixBlockSpliterator,prefixBlockSpliterator(int prefixLength),blockSpliterator(int segmentCount),sequentialBlockSpliterator,segmentsSpliterator - added functions to create a single stream from multiple spliterators in
AddressComponentRange:<T extends AddressComponent> Stream<T> stream(Function<T, Stream<? extends T>> addrStreamFunc, T ...components)<T extends AddressComponent> Stream<T> stream(Function<T, Stream<? extends T>> addrStreamFunc, Collection<? extends T> components)
- added
coverWithPrefixBlockmethod to find single covering prefix block, the smallest prefix block covering two subnets or addresses - added
IPAddressStringandHostNameparsed mask access throughgetMaskmethod - made sub-typing of address classes easier by loosening restrictions on using multiple network objects
- altered network mask with prefix length so that it is single host
- fixed a serialization issue involving
IPAddressStringinstances with masks - fixed a threading issue with
IPAddressString.getDivisionGrouping - fixed issue #32,
mergeToPrefixBlocksexception on /1 prefix blocks