public enum Repository extends Enum<Repository>
| Modifier and Type | Method and Description |
|---|---|
static Repository |
fromCode(String code) |
String |
getCode() |
static Repository |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Repository[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Repository SNAPSHOTS
public static final Repository RELEASES
public static Repository[] values()
for (Repository c : Repository.values()) System.out.println(c);
public static Repository 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 Repository fromCode(String code)
public String getCode()
Copyright © 2017. All rights reserved.