Uses of Class
uk.ipfreely.Address
Package
Description
Generic
IP addresses as numeric types with arithmetic and bitwise operations.
Specialized IP address collection types capable of representing entire address ranges or subsets thereof.
-
Uses of Address in uk.ipfreely
Modifier and TypeClassDescriptionclass
class
final class
Provides utility methods for working with RFC-4632 Classless Inter-domain Routing blocks of IP addresses for a givenFamily
.Modifier and TypeClassDescriptionfinal class
Immutable IPv4Address
and 32-bit unsigned integer value.final class
Immutable IPv6Address
and 128-bit unsigned integer value.Modifier and TypeMethodDescriptionstatic Address
<?> Family.unknown
(byte... address) Uses array length to detect IP address family and callsFamily.parse(byte...)
.static Address
<?> Family.unknown
(CharSequence candidate) Uses heuristics to detect IP address family and callsFamily.parse(CharSequence)
. -
Uses of Address in uk.ipfreely.sets
Modifier and TypeInterfaceDescriptioninterface
AddressSet<A extends Address<A>>
Discrete set interface of zero toFamily.max()
Address
es.interface
interface
AddressSet
interface that forms contiguous range of one or moreAddress
es.Modifier and TypeMethodDescriptionAddressSets.address
(A address) Single address asBlock
.AddressSets.block
(A first, int maskSize) CreatesBlock
from network address and mask size.AddressSets.block
(A first, A last) Creates a block from the given addresses which MUST form a valid CIDR block.static <A extends Address<A>,
S extends AddressSet<A>>
AddressSet<A> Version ofAddressSets.of(AddressSet[])
intended for standard collections.static <A extends Address<A>,
S extends AddressSet<A>>
AddressSet<A> AddressSets.of
(S... sets) Factory method forAddressSet
.AsAddressSets.parseCidr(String)
with version expectation.AddressSets.range
(A first, A last) CreatesRange
instance.Modifier and TypeMethodDescriptiondefault boolean
Tests ifRange.contains(Address)
is true for any of the constituentAddressSet.ranges()
.default boolean
Tests argument is sameFamily
and more than or equal toRange.first()
and less than or equal toRange.last()
.