public final class InetAddressRange extends Object implements Comparable<InetAddressRange>, Iterable<InetAddress>
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static InetAddressRange parse(String s) throws ParseException
ParseExceptionpublic static InetAddressRange all()
public static InetAddressRange fromAddressMask(Inet6Address address, Inet6Address mask) throws ParseException
ParseExceptionpublic static InetAddressRange fromAddressMask(Inet4Address address, Inet4Address mask) throws ParseException
ParseExceptionpublic static InetAddressRange fromCidr(Inet4Address address, int cidrPrefix) throws ParseException
ParseExceptionpublic static InetAddressRange fromCidr(Inet6Address address, int cidrPrefix) throws ParseException
ParseExceptionpublic static InetAddressRange fromRange(Inet4Address start, Inet4Address end) throws ParseException
ParseExceptionpublic static InetAddressRange fromRange(Inet6Address start, Inet6Address end) throws ParseException
ParseExceptionpublic static InetAddressRange fromAddress(InetAddress address)
public InetAddress getStartAddress()
public InetAddress getEndAddress()
public InetAddress getMaskAddress()
public InetAddress getNetworkAddress()
public int getCidrPrefix()
public boolean contains(InetAddress address)
public boolean isSubnet()
public boolean isSingle()
public String toCidrString()
public String toRangeString()
public int compareTo(InetAddressRange o)
compareTo in interface Comparable<InetAddressRange>public Iterator<InetAddress> iterator()
iterator in interface Iterable<InetAddress>Copyright © 2019. All rights reserved.