ExpandableStringEnum<T> Class
- java.
lang. Object - com.
microsoft. bot. restclient. ExpandableStringEnum<T>
- com.
Type Parameters
- T
a specific expandable enum type
public abstract class ExpandableStringEnum<T>
Base implementation for expandable, single string enums.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ExpandableStringEnum() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| protected static T | <T>fromString(String name, Class<T> clazz) |
| protected static java.util.Collection<T> | <T>values(Class<T> clazz) |
| boolean | equals(Object obj) |
| int | hashCode() |
| java.lang.String | toString() |
| protected T | withNameValue(String name, T value, Class<T> clazz) |
Methods inherited from java.lang.Object
Constructor Details
ExpandableStringEnum
public ExpandableStringEnum()
Method Details
<T>fromString
protected static T
Parameters:
<T>values
protected static Collection
Parameters:
equals
public boolean equals(Object obj)
Overrides:
ExpandableStringEnum<T>.equals(Object obj)Parameters:
hashCode
public int hashCode()
Overrides:
ExpandableStringEnum<T>.hashCode()toString
public String toString()
Overrides:
ExpandableStringEnum<T>.toString()withNameValue
protected T withNameValue(String name, T value, Class
Parameters: