public enum Extensions extends Enum<Extensions>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Extension> |
get(TelegramBot bot,
Class<T> cls) |
static <T extends Extension,U extends T> |
register(Class<T> cls,
Extension.Provider<U> provider) |
static Extensions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Extensions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Extensions INSTANCE
public static Extensions[] values()
for (Extensions c : Extensions.values()) System.out.println(c);
public static Extensions 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 <T extends Extension,U extends T> void register(Class<T> cls, Extension.Provider<U> provider)
public static <T extends Extension> T get(TelegramBot bot, Class<T> cls)
Copyright © 2017. All rights reserved.