public static enum PeerFlags.AddressVersion extends Enum<PeerFlags.AddressVersion>
Modifier and Type | Method and Description |
---|---|
<R> R |
map(java.util.function.Function<PeerFlags.AddressVersion,R> mapper) |
static PeerFlags.AddressVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerFlags.AddressVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerFlags.AddressVersion IP_V4
public static final PeerFlags.AddressVersion IP_V6
public static PeerFlags.AddressVersion[] values()
for (PeerFlags.AddressVersion c : PeerFlags.AddressVersion.values()) System.out.println(c);
public static PeerFlags.AddressVersion 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 <R> R map(java.util.function.Function<PeerFlags.AddressVersion,R> mapper)
Copyright © 2020. All rights reserved.