gdxapp4d/demo4d-bassboonyd/src/main/love/distributedrebirth/bassboonyd/BãßBȍőnEnumʸᴰ.java

30 lines
708 B
Java
Raw Normal View History

2022-02-02 16:34:46 +00:00
package love.distributedrebirth.bassboonyd;
2022-02-02 17:01:10 +00:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
2022-02-02 16:34:46 +00:00
public interface BãßBȍőnEnumʸᴰ<T> {
String name();
default String BȍőnNaam() {
return name();
}
default String BȍőnNaamI18N() {
return BãßNaam() + BãßBȍőnConstants.STR_DOT + name();
}
default String BãßNaam() {
2022-02-02 17:01:10 +00:00
return getClass().getAnnotation(BãßBȍőnInfoʸᴰ.class).name();
}
@SuppressWarnings("unchecked")
default T[] BãßInstances() {
try {
Object result = getClass().getMethod(BãßBȍőnConstants.STR_VALUES).invoke(null);
return (T[]) result;
} catch (Exception e) {
throw new RuntimeException(e);
}
2022-02-02 16:34:46 +00:00
}
}