public enum ApplicationMode extends Enum<ApplicationMode>
default
mode
which causes the product to behave like a general-purpose code hosting platform and the mirror
mode
which causes the product to behave like a code mirror for projects and repositories hosted in another server.Enum Constant and Description |
---|
DEFAULT
Signifies the application should behave in the default mode - a general-purpose code hosting platform
|
MIRROR
Signifies the application should behave like a code mirror for projects and repositories hosted in another server
|
Modifier and Type | Method and Description |
---|---|
static Optional<ApplicationMode> |
fromId(String value)
Coerces a string to an
ApplicationMode or returns the supplied default value if this is not possible |
String |
getId() |
static ApplicationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationMode DEFAULT
public static final ApplicationMode MIRROR
public static ApplicationMode[] values()
for (ApplicationMode c : ApplicationMode.values()) System.out.println(c);
public static ApplicationMode 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 static Optional<ApplicationMode> fromId(@Nullable String value)
ApplicationMode
or returns the supplied default value if this is not possiblevalue
- the ID of the application modeApplicationMode
valueCopyright © 2022 Atlassian. All rights reserved.