Closed GoogleCodeExporter closed 9 years ago
Good idea, I'll look into it.
Original comment by janvanbesien@gmail.com
on 30 Jun 2013 at 12:50
size() method added.
Note that you can use the implementation (using BigInteger) as inspiration for
a more efficient workaround in your code while awaiting a new release of the
java-ipv6 library.
public BigInteger size()
{
BigInteger firstAsBigInteger = new BigInteger(1, first.toByteArray());
BigInteger lastAsBigInteger = new BigInteger(1, last.toByteArray());
// note that first and last are included in the range.
return lastAsBigInteger.subtract(firstAsBigInteger).add(BigInteger.ONE);
}
Original comment by janvanbesien@gmail.com
on 30 Jun 2013 at 1:18
Great! Thanks!
Original comment by Moshe.El...@gmail.com
on 30 Jun 2013 at 2:00
Original comment by janvanbesien@gmail.com
on 8 Jul 2013 at 12:53
Original comment by janvanbesien@gmail.com
on 23 Jul 2013 at 9:18
Original issue reported on code.google.com by
Moshe.El...@gmail.com
on 29 Jun 2013 at 8:56