Package com.cadiducho.telegrambotapi
Enum Chat.ChatType
- java.lang.Object
-
- java.lang.Enum<Chat.ChatType>
-
- com.cadiducho.telegrambotapi.Chat.ChatType
-
- All Implemented Interfaces:
Serializable
,Comparable<Chat.ChatType>
- Enclosing class:
- Chat
public static enum Chat.ChatType extends Enum<Chat.ChatType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANNEL
GROUP
PRIVATE
SUPERGROUP
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Chat.ChatType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Chat.ChatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIVATE
public static final Chat.ChatType PRIVATE
-
GROUP
public static final Chat.ChatType GROUP
-
SUPERGROUP
public static final Chat.ChatType SUPERGROUP
-
CHANNEL
public static final Chat.ChatType CHANNEL
-
UNKNOWN
public static final Chat.ChatType UNKNOWN
-
-
Method Detail
-
values
public static Chat.ChatType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Chat.ChatType c : Chat.ChatType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Chat.ChatType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-