Skip to content

Version 5.2.0

Compare
Choose a tag to compare
@seancfoley seancfoley released this 29 Dec 20:47
· 241 commits to master since this release

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 and HostName parsed mask access through getMask 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