|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectIpList.IpAddr
private class IpList.IpAddr
Data class to keep track of the four numeric components of an IP address.
Field Summary | |
---|---|
int[] |
components
|
Constructor Summary | |
---|---|
IpList.IpAddr()
Constructs a blank IP address structure |
|
IpList.IpAddr(int c0,
int c1,
int c2,
int c3)
Constructs an IP address from the four numeric components |
Method Summary | |
---|---|
(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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int[] components
Constructor Detail |
---|
IpList.IpAddr()
IpList.IpAddr(int c0, int c1, int c2, int c3)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |