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
coverWithPrefixBlock
method to find single covering prefix block, the smallest prefix block covering two subnets or addresses - added
IPAddressString
andHostName
parsed mask access throughgetMask
method - 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
IPAddressString
instances with masks - fixed a threading issue with
IPAddressString.getDivisionGrouping
- fixed issue #32,
mergeToPrefixBlocks
exception on /1 prefix blocks