public final class IpFeilds extends Object
| Constructor and Description |
|---|
IpFeilds(InetAddress address)
Instantiates a new iP feilds.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getA()
Gets the a (Indicates the first part of ip i.e a.b.c.d .) as
integer.
|
InetAddress |
getAddress()
Gets the address.
|
int |
getB()
Gets the b (Indicates the second part of ip i.e a.b.c.d.) as
integer..
|
int |
getC()
Gets the c (Indicates the third part of ip i.e a.b.c.d.) as
integer..
|
int |
getD()
Gets the d (Indicates the fourth part of ip i.e a.b.c.d.) as
integer.
|
String |
toString() |
public IpFeilds(InetAddress address)
address - the addresspublic int getA()
public int getB()
public int getC()
public int getD()
public InetAddress getAddress()
Copyright © 2016 utils4j. All Rights Reserved.