Limit bbc to one line
This commit is contained in:
parent
caf31e2f96
commit
67d0ad3b49
|
@ -17,6 +17,7 @@ public enum T02PartBinary implements BassBone<T02PartBinary> {
|
|||
PART_2("꜔","1", "高", "high"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -28,9 +29,4 @@ public enum T02PartBinary implements BassBone<T02PartBinary> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ public enum T03PartTrit implements BassBone<T03PartTrit> {
|
|||
PART_3("˨","2","三","3"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -29,9 +30,4 @@ public enum T03PartTrit implements BassBone<T03PartTrit> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ public enum T04PartQuad implements BassBoneAlt1<T04PartQuad> {
|
|||
PART_4("˩","3","南","south","S"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -34,11 +35,6 @@ public enum T04PartQuad implements BassBoneAlt1<T04PartQuad> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
|
||||
public T02PartBinary splitPartBinary(T02PartBinary part) {
|
||||
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ public enum T06PartSeximal implements BassBoneAlt1<T06PartSeximal> {
|
|||
PART_6("꜏","5","九","9","X"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -38,11 +39,6 @@ public enum T06PartSeximal implements BassBoneAlt1<T06PartSeximal> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
|
||||
public T02PartBinary splitPartBinary() {
|
||||
return T02PartBinary.values()[ordinal() & 1];
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ public enum T07PartPlanIt implements BassBoneAlt1<T07PartPlanIt> {
|
|||
PART_7("˩","7","♈︎","aries","白羊座"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -36,9 +37,4 @@ public enum T07PartPlanIt implements BassBoneAlt1<T07PartPlanIt> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ public enum T08PartOctal implements BassBoneAlt2<T08PartOctal>,BassBoneShiftBits
|
|||
PART_8("꜑","7","腳","feet", "˧˩˩","˩˩˧", 21),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
public static int BIT_COUNT = 3;
|
||||
private static final byte BITMASK = 0x07;
|
||||
|
@ -45,11 +46,6 @@ public enum T08PartOctal implements BassBoneAlt2<T08PartOctal>,BassBoneShiftBits
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
|
||||
public static T08PartOctal indexOf(T08PartOctal group, int value) {
|
||||
return T08PartOctal.values()[(value >> group.getShiftBits()) & BITMASK];
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public enum T10PartDecimal implements BassBoneAlt4<T10PartDecimal> {
|
|||
PART_10("꜖","θ","玖","nine", "구","\u1049","৯","෯"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -49,9 +50,4 @@ public enum T10PartDecimal implements BassBoneAlt4<T10PartDecimal> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ public enum T11PartUndecimal implements BassBoneAlt1<T11PartUndecimal> {
|
|||
PART_11("˩","=","耦","mate", "௰"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -40,9 +41,4 @@ public enum T11PartUndecimal implements BassBoneAlt1<T11PartUndecimal> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ public enum T12PartUncial implements BassBoneAlt1<T12PartUncial> {
|
|||
PART_12("꜑","B","亞","nozero", "\u218b"), // TURNED DIGIT THREE
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -41,9 +42,4 @@ public enum T12PartUncial implements BassBoneAlt1<T12PartUncial> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public enum T16PartHex implements BassBoneAlt1<T16PartHex> {
|
|||
PART_16("꜑","F","硫","sulfur", "D"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -46,11 +47,6 @@ public enum T16PartHex implements BassBoneAlt1<T16PartHex> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
|
||||
public T02PartBinary splitPartBinary(T04PartQuad part) {
|
||||
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public enum T20PartScore implements BassBoneAlt3<T20PartScore> {
|
|||
PART_20("꜑","y", "幺","yocto","J","K","X"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
private static final Map<String, T20PartScore> OPENLC_MAP = Collections.unmodifiableMap(
|
||||
|
@ -64,11 +65,6 @@ public enum T20PartScore implements BassBoneAlt3<T20PartScore> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
|
||||
public T20PartScore staticValueOfOpenLC(String openLCKey) {
|
||||
return OPENLC_MAP.get(openLCKey);
|
||||
}
|
||||
|
|
|
@ -78,6 +78,7 @@ public enum T60Sexagesimal implements BassBone<T60Sexagesimal> {
|
|||
PART_60("꜑꜑꜏","οϚ","蘋","apple"),
|
||||
;
|
||||
|
||||
public BassBoneCoffin GET_BBC() { return bbc; }
|
||||
public static int LENGTH() { return values().length; };
|
||||
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
|
||||
|
||||
|
@ -89,9 +90,4 @@ public enum T60Sexagesimal implements BassBone<T60Sexagesimal> {
|
|||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_TONE);
|
||||
GET_BBC().GET_MAP_OBJ(BassBoneStoreKey.MAP_CHINA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BassBoneCoffin GET_BBC() {
|
||||
return bbc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue