public static enum NullableExample.B extends Enum<NullableExample.B>
| Modifier and Type | Method and Description |
|---|---|
static NullableExample.B |
fromValue(Object value) |
String |
value() |
static NullableExample.B |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NullableExample.B[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullableExample.B HELLO
public static final NullableExample.B THERE
public static NullableExample.B[] values()
for (NullableExample.B c : NullableExample.B.values()) System.out.println(c);
public static NullableExample.B 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 String value()
public static NullableExample.B fromValue(Object value)
Copyright © 2023. All rights reserved.