Modifier and Type | Method and Description |
---|---|
static Scheme |
forValue(java.lang.String value) |
java.lang.String |
toValue() |
static Scheme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheme HTTP
public static final Scheme HTTPS
public static final Scheme WS
public static final Scheme WSS
public static Scheme[] values()
for (Scheme c : Scheme.values()) System.out.println(c);
public static Scheme valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Scheme forValue(java.lang.String value)
public java.lang.String toValue()
Copyright © 2018. All Rights Reserved.