public class IPv4Address extends Object implements Serializable, Comparable<IPv4Address>
Constructor and Description |
---|
IPv4Address(byte[] address) |
IPv4Address(IPv4Address ip) |
Modifier and Type | Method and Description |
---|---|
static String |
byteArrayToIPString(byte[] addr)
Converts the byte array to an IP string with option CIDR representation
|
int |
compareTo(IPv4Address other) |
boolean |
equals(Object obj) |
byte[] |
getBytes()
Returns the byte array representation of the address
|
int |
hashCode() |
static IPv4Address |
IPv4Factory(String... s) |
String |
toString()
Return printable version of the IP address
|
public IPv4Address(byte[] address)
public IPv4Address(IPv4Address ip)
public byte[] getBytes()
public String toString()
public static String byteArrayToIPString(byte[] addr)
addr
- public static IPv4Address IPv4Factory(String... s)
public int compareTo(IPv4Address other)
compareTo
in interface Comparable<IPv4Address>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.