public class IPv4AddressStringParameters extends IPAddressStringParameters.IPAddressStringFormatParameters implements Comparable<IPv4AddressStringParameters>
IPAddressStringParameters instance.| Modifier and Type | Class and Description |
|---|---|
static class |
IPv4AddressStringParameters.Builder |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ALLOW_IPV4_INET_ATON |
static boolean |
DEFAULT_ALLOW_IPV4_INET_ATON_SINGLE_SEGMENT_MASK |
boolean |
inet_aton_hex
Allows ipv4 inet_aton hexadecimal format 0xa.0xb.0xc.0xd
|
boolean |
inet_aton_joinedSegments
Allows ipv4 joined segments like 1.2.3, 1.2, or just 1
For the case of just 1 segment, the behaviour is controlled by
AddressStringParameters.allowSingleSegment |
boolean |
inet_aton_leading_zeros
Allows ipv4 inet_aton hexadecimal or octal to have leading zeros, such as in the first two segments of 0x0a.00b.c.d
The first 0 is not considered a leading zero, it either denotes octal or hex depending on whether it is followed by an 'x'.
|
boolean |
inet_aton_octal
Allows ipv4 inet_aton octal format, 04.05.06.07 being an example.
|
boolean |
inet_aton_single_segment_mask
If you allow ipv4 joined segments, whether you allow a mask that looks like a prefix length: 1.2.3.5/255
|
allowBinary, allowPrefixesBeyondAddressSize, allowPrefixLengthLeadingZeros, DEFAULT_ALLOW_BINARY, DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE, DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROSallowLeadingZeros, allowUnlimitedLeadingZeros, allowWildcardedSeparator, DEFAULT_ALLOW_LEADING_ZEROS, DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS, DEFAULT_ALLOW_WILDCARDED_SEPARATOR, DEFAULT_RANGE_OPTIONS, rangeOptions| Constructor and Description |
|---|
IPv4AddressStringParameters(boolean allowLeadingZeros,
boolean allowCIDRPrefixLeadingZeros,
boolean allowUnlimitedLeadingZeros,
AddressStringParameters.RangeParameters rangeOptions,
boolean allowWildcardedSeparator,
boolean allowPrefixesBeyondAddressSize,
boolean allowBinary,
boolean inet_aton_hex,
boolean inet_aton_octal,
boolean inet_aton_leading_zeros,
boolean inet_aton_joinedSegments,
boolean inet_aton_single_segment_mask,
IPv4AddressNetwork network)
Constructs the parameters for IPv4-specific string parsing.
|
IPv4AddressStringParameters(boolean allowLeadingZeros,
boolean allowCIDRPrefixLeadingZeros,
boolean allowUnlimitedLeadingZeros,
AddressStringParameters.RangeParameters rangeOptions,
boolean allowWildcardedSeparator,
boolean allowPrefixesBeyondAddressSize,
boolean inet_aton_hex,
boolean inet_aton_octal,
boolean inet_aton_leading_zeros,
boolean inet_aton_joinedSegments,
boolean inet_aton_single_segment_mask,
IPv4AddressNetwork network)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
IPv4AddressStringParameters |
clone() |
int |
compareTo(IPv4AddressStringParameters o) |
boolean |
equals(Object o) |
IPv4AddressNetwork |
getNetwork() |
int |
hashCode() |
IPv4AddressStringParameters.Builder |
toBuilder() |
public static final boolean DEFAULT_ALLOW_IPV4_INET_ATON
public static final boolean DEFAULT_ALLOW_IPV4_INET_ATON_SINGLE_SEGMENT_MASK
public final boolean inet_aton_hex
public final boolean inet_aton_octal
AddressStringParameters.AddressStringFormatParameters.allowLeadingZerospublic final boolean inet_aton_leading_zeros
public final boolean inet_aton_joinedSegments
AddressStringParameters.allowSingleSegmentpublic final boolean inet_aton_single_segment_mask
@Deprecated public IPv4AddressStringParameters(boolean allowLeadingZeros, boolean allowCIDRPrefixLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize, boolean inet_aton_hex, boolean inet_aton_octal, boolean inet_aton_leading_zeros, boolean inet_aton_joinedSegments, boolean inet_aton_single_segment_mask, IPv4AddressNetwork network)
public IPv4AddressStringParameters(boolean allowLeadingZeros,
boolean allowCIDRPrefixLeadingZeros,
boolean allowUnlimitedLeadingZeros,
AddressStringParameters.RangeParameters rangeOptions,
boolean allowWildcardedSeparator,
boolean allowPrefixesBeyondAddressSize,
boolean allowBinary,
boolean inet_aton_hex,
boolean inet_aton_octal,
boolean inet_aton_leading_zeros,
boolean inet_aton_joinedSegments,
boolean inet_aton_single_segment_mask,
IPv4AddressNetwork network)
allowLeadingZeros - allowCIDRPrefixLeadingZeros - allowUnlimitedLeadingZeros - rangeOptions - allowWildcardedSeparator - allowPrefixesBeyondAddressSize - allowBinary - inet_aton_hex - inet_aton_octal - inet_aton_leading_zeros - inet_aton_joinedSegments - inet_aton_single_segment_mask - network - public IPv4AddressStringParameters.Builder toBuilder()
public IPv4AddressNetwork getNetwork()
getNetwork in class IPAddressStringParameters.IPAddressStringFormatParameterspublic IPv4AddressStringParameters clone()
public int compareTo(IPv4AddressStringParameters o)
compareTo in interface Comparable<IPv4AddressStringParameters>public boolean equals(Object o)
equals in class IPAddressStringParameters.IPAddressStringFormatParameterspublic int hashCode()
hashCode in class IPAddressStringParameters.IPAddressStringFormatParameters