2022-02-02 17:34:46 +01:00
|
|
|
package love.distributedrebirth.bassboonyd;
|
|
|
|
|
|
2022-08-24 17:33:39 +02:00
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-10-14 01:35:53 +02:00
|
|
|
public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> 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ʸᴰ)
|
2022-02-06 17:19:05 +01:00
|
|
|
|
|
|
|
|
int ordinal();
|
2022-02-02 17:34:46 +01:00
|
|
|
|
|
|
|
|
String name();
|
|
|
|
|
|
|
|
|
|
default String BȍőnNaam() {
|
|
|
|
|
return name();
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-02 18:01:10 +01:00
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
default T[] BãßInstances() {
|
|
|
|
|
try {
|
2022-02-02 18:06:12 +01:00
|
|
|
Object result = getClass().getMethod(BãßBȍőnConstantsʸᴰ.STR_VALUES).invoke(null);
|
2022-02-02 18:01:10 +01:00
|
|
|
return (T[]) result;
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
2022-02-02 17:34:46 +01:00
|
|
|
}
|
|
|
|
|
}
|