private class IpList.IpAddr
extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
components |
Constructor and Description |
---|
IpAddr()
Constructs a blank IP address structure
|
IpAddr(int c0,
int c1,
int c2,
int c3)
Constructs an IP address from the four numeric components
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
componentsEqual(IpList.IpAddr other,
int nComps)
Checks if the first 'nComps' components of this IP address are
equal to the specified one.
|
(package private) String |
parse(String str)
Parses a string of the form "aaa.bbb.ccc.ddd", replacing the
contents of this IP address structure with the results.
|
IpAddr()
IpAddr(int c0, int c1, int c2, int c3)
boolean componentsEqual(IpList.IpAddr other, int nComps)
other
- The IP address to compare tonComps
- How many components to compare (1-4)String parse(String str)
str
- String to parse