Uses of Class
uk.ipfreely.Addr
Packages that use Addr
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 Addr in uk.ipfreely
Classes in uk.ipfreely with type parameters of type AddrModifier and TypeClassDescriptionclass
class
final class
Provides utility methods for working with RFC-4632 Classless Inter-domain Routing blocks of IP addresses for a givenFamily
.Subclasses of Addr in uk.ipfreelyModifier and TypeClassDescriptionfinal class
Immutable IPv4Addr
and 32-bit unsigned integer value.final class
Immutable IPv6Addr
and 128-bit unsigned integer value.Methods in uk.ipfreely that return AddrModifier and TypeMethodDescriptionstatic Addr
<?> Net.toAddr
(InetAddress address) FromInetAddress
.static Addr
<?> Family.unknown
(byte... address) Uses array length to detect IP address family and callsFamily.parse(byte...)
.static Addr
<?> Family.unknown
(CharSequence candidate) Uses heuristics to detect IP address family and callsFamily.parse(CharSequence)
.Methods in uk.ipfreely with parameters of type AddrModifier and TypeMethodDescriptionstatic InetAddress
Net.toInetAddress
(Addr<?> address) CreatesInetAddress
. -
Uses of Addr in uk.ipfreely.sets
Classes in uk.ipfreely.sets with type parameters of type AddrModifier and TypeInterfaceDescriptioninterface
AddressSet<A extends Addr<A>>
Discrete ordered set interface of zero toFamily.max()
Addr
es.interface
interface
AddressSet
interface that forms contiguous range of one or moreAddr
es.Methods in uk.ipfreely.sets with type parameters of type AddrModifier 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 Addr<A>,
S extends AddressSet<A>>
AddressSet<A> Version ofAddressSets.of(AddressSet[])
intended for standard collections.static <A extends Addr<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.Methods in uk.ipfreely.sets with parameters of type AddrModifier and TypeMethodDescriptiondefault boolean
Tests ifRange.contains(Addr)
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()
.