gdxapp4d/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java

33 lines
889 B
Java

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