gdxapp4d/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java
2022-10-17 20:19:47 +02:00

30 lines
918 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package love.distributedrebirth.bassboonyd;
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
import love.distributedrebirth.bassboonyd.coffin.BãßBȍőnCoffinNail;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinNail> extends DefaultBãßBȍőnʸᴰ<T, K> {
// Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ)
// Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ)
int ordinal();
String name();
default String BȍőnNaam() {
return name();
}
@SuppressWarnings("unchecked")
default T[] BãßInstances() {
try {
Object result = getClass().getMethod(Bãß.Cỗᶇṧⱦᶏꬼȶʂ.STR_VALUES).invoke(null);
return (T[]) result;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}