org.n52.security.common.ip
Interface IPRange

All Known Subinterfaces:
IPAddressMask
All Known Implementing Classes:
IP4AddressMask, IPIntervalRange

public interface IPRange

A range of contiguous IP addresses.

Author:
jdr

Method Summary
 boolean contains(InetAddress address)
          Checks whether a given IP address is part of this IP address range.
 InetAddress first()
           
 InetAddress last()
           
 

Method Detail

contains

boolean contains(InetAddress address)
Checks whether a given IP address is part of this IP address range.

Parameters:
address - the address to test.
Returns:
true if the specified address is in the range, false otherwise.

first

InetAddress first()
Returns:
IP address that is the upper border of the range.

last

InetAddress last()
Returns:
IP address that is the lower border of the range.


Copyright © 2004–2014 52north.org. All rights reserved.