java.lang.Object
net.i2p.util.Addresses.Inet6Addr
- Enclosing class:
Addresses
Cached IPv6 address with its scope.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Inet6AddressThe interface address.private final booleanTrue if the address is flagged deprecated.private final booleanTrue unless the address is flagged permanent.private final booleanTrue if the address is flagged temporary.Constructor Summary
ConstructorsConstructorDescriptionInet6Addr(Inet6Address a, int flags) Records one interface address with its flags.Method Summary
All MethodsModifier and TypeMethodDescriptionReturns the interface address.booleanChecks whether the address is deprecated.booleanChecks whether the address may change.booleanChecks whether the address is temporary.
Field Details
addr
The interface address.isDyn
private final boolean isDynTrue unless the address is flagged permanent.isDep
private final boolean isDepTrue if the address is flagged deprecated.isTemp
private final boolean isTempTrue if the address is flagged temporary.
Constructor Details
Inet6Addr
Records one interface address with its flags.- Parameters:
a- the interface addressflags- the flags from the proc file
Method Details
getAddress
isDynamic
public boolean isDynamic()Checks whether the address may change.- Returns:
- true unless the address is permanent
isDeprecated
public boolean isDeprecated()Checks whether the address is deprecated.- Returns:
- true if deprecated
isTemporary
public boolean isTemporary()Checks whether the address is temporary.- Returns:
- true if temporary