|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.ip.Subnet
public class Subnet
IP subnet consisting of a network address and a network mask. Individual ip addresses are represented as all ones subnets. Zero subnets are also allowed.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
static Subnet |
forAddress(java.net.InetAddress ipAddress)
Creates an all ones subnet of the given ip address. |
static Subnet |
forPattern(java.lang.String pattern)
Creates a subnet of the given pattern. |
byte[] |
getAddress()
Returns the network address of this subnet. |
int |
getMask()
Returns the network mask of this subnet. |
int |
hashCode()
|
static boolean |
isValidPattern(java.lang.String pattern)
Returns true if the given pattern is a valid subnet pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Subnet forPattern(java.lang.String pattern)
192.168.1.10 ::10 192.168.1.* 192.168.5.128/26 0:0:0:7b::/64
pattern - pattern to create a Subnet of
public static Subnet forAddress(java.net.InetAddress ipAddress)
ipAddress - ipAddress to create a subnet of
public static boolean isValidPattern(java.lang.String pattern)
pattern - pattern to validate
public byte[] getAddress()
public int getMask()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||