public static enum CompactPeerInfo.AddressType extends Enum<CompactPeerInfo.AddressType>
Enum Constant and Description |
---|
IPV4
Internet Protocol v4
|
IPV6
Internet Protocol v6
|
Modifier and Type | Method and Description |
---|---|
int |
length() |
static CompactPeerInfo.AddressType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompactPeerInfo.AddressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompactPeerInfo.AddressType IPV4
public static final CompactPeerInfo.AddressType IPV6
public static CompactPeerInfo.AddressType[] values()
for (CompactPeerInfo.AddressType c : CompactPeerInfo.AddressType.values()) System.out.println(c);
public static CompactPeerInfo.AddressType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int length()
Copyright © 2016–2021. All rights reserved.