InetAddress. To create a pattern use
the InetAddressPattern#from(String) method, which will create a pattern given a
string conforming to one of the following formats.
InetAddress are accepted. Not ethat using hostname
matches may force domain lookups. eg. "[::1]", "1.2.3.4", "::ffff:127.0.0.1"| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static InetAddressPattern | |
| public int | |
| public String |
| _pattern | back to summary |
|---|---|
| protected final String _pattern | |
| InetAddressPattern | back to summary |
|---|---|
| public InetAddressPattern(String pattern) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static InetAddressPattern from(String pattern) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(InetAddress
the input argument address)Implements java. Evaluates this predicate on the given argument. |
| _mask | back to summary |
|---|---|
| pack-priv final int _mask | |
| _masked | back to summary |
|---|---|
| pack-priv final int _masked | |
| _octets | back to summary |
|---|---|
| pack-priv final int _octets | |
| _raw | back to summary |
|---|---|
| pack-priv final byte[] _raw | |
| CidrInetAddressRange | back to summary |
|---|---|
| public CidrInetAddressRange(String pattern, InetAddress address, int cidr) | |
| test | back to summary |
|---|---|
| public boolean test(InetAddress address) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(InetAddress
the input argument address)Implements java. Evaluates this predicate on the given argument. |
| LegacyInetAddressRange | back to summary |
|---|---|
| public LegacyInetAddressRange(String pattern) | |
| test | back to summary |
|---|---|
| public boolean test(InetAddress address) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int[] | |
| pack-priv final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(InetAddress
the input argument address)Implements java. Evaluates this predicate on the given argument. |
| _max | back to summary |
|---|---|
| pack-priv final int[] _max | |
| _min | back to summary |
|---|---|
| pack-priv final int[] _min | |
| MinMaxInetAddressRange | back to summary |
|---|---|
| public MinMaxInetAddressRange(String pattern, InetAddress min, InetAddress max) | |
| test | back to summary |
|---|---|
| public boolean test(InetAddress address) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final InetAddress |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(InetAddress
the input argument address)Implements java. Evaluates this predicate on the given argument. |
| _address | back to summary |
|---|---|
| pack-priv final InetAddress _address | |
| SingletonInetAddressRange | back to summary |
|---|---|
| public SingletonInetAddressRange(String pattern, InetAddress address) | |
| test | back to summary |
|---|---|
| public boolean test(InetAddress address) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |