Cleaned constants
This commit is contained in:
parent
0e5b46e9b0
commit
9dbf694313
7 changed files with 99 additions and 68 deletions
|
|
@ -79,21 +79,36 @@ public interface Bãß {
|
|||
}
|
||||
}
|
||||
|
||||
//@ImportStatic(guard = true, reason = "Death to import static name space pollution.")
|
||||
public static final class ℭỗᶇṧⱦᶏꬼȶʂ {
|
||||
public static final String STR_VALUES = "values";
|
||||
public static final String STR_NAME = "name";
|
||||
public static final String STR_TYPE = "type";
|
||||
public static final String STR_DOT = ".";
|
||||
|
||||
// 4 is magnetic consent and 3 is forced stable outcome
|
||||
public static final char CHAR_ZERO = '0';
|
||||
public static final char CHAR_ONE = '1';
|
||||
public static final char CHAR_SPACE = ' ';
|
||||
public static final char CHAR_A = 'a';
|
||||
|
||||
public static final String STR_VOID = null;
|
||||
public static final String STR_EMPTY = "";
|
||||
public static final String STR_SPACE = " ";
|
||||
public static final String STR_COMMA = ",";
|
||||
public static final String STR_COLON = ":";
|
||||
public static final String STR_IS = "=";
|
||||
public static final String STR_SPACE_CHINA = "\u3000";
|
||||
|
||||
public static final int INT_ZERO = 0;
|
||||
public static final int INT_ONE = 1;
|
||||
public static final int INT_TEN = 10;
|
||||
|
||||
public static final long LONG_ZERO = 0l;
|
||||
public static final long LONG_ONE = 1l;
|
||||
public static final long LONG_TEN = 10l;
|
||||
|
||||
public static final float FLOAT_ZERO = 0f;
|
||||
public static final float FLOAT_ONE = 1f;
|
||||
public static final float FLOAT_TEN = 10f;
|
||||
|
||||
public static final double DOUBLE_ZERO = 0d;
|
||||
public static final double DOUBLE_ONE = 1d;
|
||||
public static final double DOUBLE_TEN = 10d;
|
||||
|
||||
private ℭỗᶇṧⱦᶏꬼȶʂ() {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,22 @@
|
|||
package love.distributedrebirth.bassboonyd;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboonyd.coffin.BãßBȍőnCoffinNail;
|
||||
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕ;
|
||||
|
||||
// Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ)
|
||||
// Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ)
|
||||
@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ʸᴰ)
|
||||
public static final class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||||
private static final String STR_VALUES = "values";
|
||||
|
||||
private Ꝑŕḯṿª₮ḕ() {
|
||||
}
|
||||
}
|
||||
|
||||
int ordinal();
|
||||
|
||||
|
|
@ -20,9 +29,8 @@ public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinNail> extend
|
|||
@SuppressWarnings("unchecked")
|
||||
default T[] BãßInstances() {
|
||||
try {
|
||||
Object result = getClass().getMethod(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_VALUES).invoke(null);
|
||||
return (T[]) result;
|
||||
} catch (Exception e) {
|
||||
return (T[]) getClass().getMethod(Ꝑŕḯṿª₮ḕ.STR_VALUES).invoke(null);
|
||||
} catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | SecurityException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ import love.distributedrebirth.bassboonyd.spider.BãßBȍőnSpiderEgg注;
|
|||
public interface DefaultEnumBaseᴶᴹˣ<T,K extends BãßBȍőnCoffinNail> extends DefaultEnumBaseʸᴰ<T,K> {
|
||||
|
||||
public static final class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||||
protected static final String STR_NAME = "name";
|
||||
protected static final String STR_TYPE = "type";
|
||||
protected static final String STR_DOT = ".";
|
||||
protected static final String STR_COLON = ":";
|
||||
protected static final String STR_IS = "=";
|
||||
protected static final String STR_COMMA = ",";
|
||||
private static final String GHOST_KEY_JMX = "JMX";
|
||||
|
||||
private Ꝑŕḯṿª₮ḕ() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import java.lang.management.ManagementFactory;
|
|||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.Bãß;
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
|
||||
import love.distributedrebirth.bassboonyd.DefaultEnumInstanceʸᴰ;
|
||||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||||
|
|
@ -26,9 +25,9 @@ public interface DefaultEnumInstanceᴶᴹˣ<T,K extends BãßBȍőnCoffinNail>
|
|||
try {
|
||||
StringBuilder name = new StringBuilder();
|
||||
name.append(boon.BãßPackageNaam());
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COLON);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_TYPE);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_COLON);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_TYPE);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_IS);
|
||||
name.append(boon.BãßInfoNaam());
|
||||
|
||||
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import java.lang.management.ManagementFactory;
|
|||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.Bãß;
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
|
||||
import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ;
|
||||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||||
|
|
@ -26,13 +25,13 @@ public interface DefaultEnumSetᴶᴹˣ<T,K extends BãßBȍőnCoffinNail> exten
|
|||
try {
|
||||
StringBuilder name = new StringBuilder();
|
||||
name.append(boon.BãßPackageNaam());
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COLON);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_TYPE);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_COLON);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_TYPE);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_IS);
|
||||
name.append(boon.BãßInfoNaam());
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COMMA);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_NAME);
|
||||
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_COMMA);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_NAME);
|
||||
name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª₮ḕ.STR_IS);
|
||||
name.append(boon.BȍőnNaam());
|
||||
|
||||
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue