Constructor and Description |
---|
IPIntervalRange(InetAddress singleAddress)
Creates an IP range based on a single IP address.
|
IPIntervalRange(InetAddress lowerBoundary,
InetAddress upperBoundary)
Creates an IP range based on two IP addresses defining an interval, which contains the lower and upper boundaries.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(InetAddress address)
Checks whether a given IP address is part of this IP address range.
|
boolean |
equals(Object obj) |
InetAddress |
first() |
int |
hashCode() |
InetAddress |
last() |
String |
toString() |
public IPIntervalRange(InetAddress lowerBoundary, InetAddress upperBoundary)
lowerBoundary
- IP address defining the lower boundary.upperBoundary
- IP address defining the upper boundary.public IPIntervalRange(InetAddress singleAddress)
singleAddress
- the single IP address that is contained in this range.public boolean contains(InetAddress address)
IPRange
public InetAddress first()
public InetAddress last()
Copyright © 2004–2017 52north.org. All rights reserved.