java.lang.Object
inet.ipaddr.AddressStringParameters.BuilderBase
inet.ipaddr.IPAddressStringParameters.Builder
- Enclosing class:
IPAddressStringParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallow_inet_aton
(boolean allow) Allows joined IPv4 segments, resulting in just 2, 3 or 4 segments.allowAll
(boolean allow) allowEmpty
(boolean allow) allowIPv4
(boolean allow) allowIPv6
(boolean allow) allowMask
(boolean allow) allowPrefix
(boolean allow) allowPrefixOnly
(boolean allow) allowSingleSegment
(boolean allow) allowWildcardedSeparator
(boolean allow) Get the sub-builder for setting IPv4 parameters.Get the sub-builder for setting IPv6 parameters.setEmptyAsLoopback
(boolean bool) void
Replaces all existing IPv4 parameters with the ones in the supplied parameters instance.void
Replaces all existing IPv6 parameters with the ones in the supplied parameters instance.setRangeOptions
(AddressStringParameters.RangeParameters rangeOptions) toParams()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getParentBuilder
-
allowEmpty
- Overrides:
allowEmpty
in classAddressStringParameters.BuilderBase
- Parameters:
allow
-- Returns:
- the builder
- See Also:
-
allowSingleSegment
- Overrides:
allowSingleSegment
in classAddressStringParameters.BuilderBase
- Parameters:
allow
-- Returns:
- the builder
- See Also:
-
setEmptyAsLoopback
-
allowPrefix
-
allowMask
-
allowPrefixOnly
-
allowAll
- Overrides:
allowAll
in classAddressStringParameters.BuilderBase
-
allowIPv4
-
allowIPv6
-
allowWildcardedSeparator
-
setRangeOptions
public IPAddressStringParameters.Builder setRangeOptions(AddressStringParameters.RangeParameters rangeOptions) -
allow_inet_aton
Allows joined IPv4 segments, resulting in just 2, 3 or 4 segments. Allows IPv4 octal or hex segments. Allows an unlimited number of leading zeros in such segments. To allow just a single segment, useallowSingleSegment(boolean)
This does not affect whether extraneous IPv4 digits are allowed, which can be allowed withIPv4AddressStringParameters.Builder.allow_inet_aton_extraneous_digits(boolean)
- Parameters:
allow
-- Returns:
-
setIPv6AddressParameters
Replaces all existing IPv6 parameters with the ones in the supplied parameters instance. -
getIPv6AddressParametersBuilder
Get the sub-builder for setting IPv6 parameters.- Returns:
- the IPv6 builder
-
setIPv4AddressParameters
Replaces all existing IPv4 parameters with the ones in the supplied parameters instance. -
getIPv4AddressParametersBuilder
Get the sub-builder for setting IPv4 parameters.- Returns:
- the IPv4 builder
-
toParams
-