gdxapp4d/demo4d-bassboonyd/src/main/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java
2022-02-06 17:19:05 +01:00

34 lines
1,005 B
Java

package love.distributedrebirth.bassboonyd;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class})
public interface DefaultEnumBaseʸᴰ<T> extends DefaultAuthorInfoʸᴰ,DefaultClassInfoʸᴰ,DefaultPackageInfoʸᴰ {
int ordinal();
String name();
// Bȍőn prefix is for set instance enum object called BãßBȍőnEnumSetʸᴰ
// Bãß prefix is for single instance enum objects called BãßBȍőnEnumInstanceʸᴰ
default String BȍőnNaam() {
return 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);
}
}
/*
default String BȍőnNaamI18N() {
return BãßClassNaam() + BãßBȍőnConstantsʸᴰ.STR_DOT + name();
}
*/
}