All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.InetAddressMask
| Summary |
public class InetAddressMask
extends java.lang.Object
{
// Fields 3
private int address;
private int addressMask;
private String nameMask;
// Constructors 1
public InetAddressMask(String) throws UnknownHostException, NumberFormatException;
// Methods 5
public boolean equals(Object);
public int hashCode();
public boolean match(InetAddress);
public int priority();
public String toString();
}
Class that can be used to select InetAddress based on a mask with wildcards.
| Fields |
· address | Summary | Top |
private int address
Address value
· nameMask | Summary | Top |
private String nameMask
If not null, then nameMask is a host name with or without wildcards
· addressMask | Summary | Top |
private int addressMask
Bitmask telling us which parts of address are valid, if the bit is on then we match the corresponding 8 bits in address. If the bit is off then anything matches.
| Constructors |
· InetAddressMask | Summary | Top |
public InetAddressMask(String addr) throws UnknownHostException, NumberFormatException
Construct an address mask from the given string
| Methods |
· equals | Summary | Top |
public boolean equals(Object o)
- Overrides:
- equals in class Object
· hashCode | Summary | Top |
public int hashCode()
Return the hashCode for the name string, if there is one, otherwise just use the address integer
- Overrides:
- hashCode in class Object
· priority | Summary | Top |
public int priority()
Return a value that can be used when prioritizing InetAddressMasks.
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
· match | Summary | Top |
public boolean match(InetAddress ia)
Test for a match between the given inet address and the mask
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7