Proper dutch
This commit is contained in:
parent
7c0c7d7df7
commit
e3bab90221
43 changed files with 179 additions and 155 deletions
|
|
@ -17,7 +17,7 @@ import love.distributedrebirth.bassboon.yd.abacus.BãßBȍőnAbacusSetʸᴰ;
|
|||
public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrixʸᴰ<T>> extends BãßBȍőnAbacusSetʸᴰ<T> {
|
||||
|
||||
public static final class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ<BãßBȍőnNumberMatrixʸᴰ<?>> {
|
||||
private static final GhostKey鬼鑰匙 GHOST_DIMENSION = GhostKey鬼鑰匙.asciiᴺᵉʷ("DIMENSION");
|
||||
private static final GhostKey鬼鑰匙 GHOST_MATRIX_DIMENSION = GhostKey鬼鑰匙.asciiᴺᵉʷ("ABACUS_DIMENSION");
|
||||
private static final GhostKey鬼鑰匙 GHOST_NUMBER_BLOCK = GhostKey鬼鑰匙.asciiᴺᵉʷ("NUMBER_BLOCK");
|
||||
|
||||
@BãßBȍőnSpiderWire注
|
||||
|
|
@ -26,7 +26,7 @@ public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrix
|
|||
@Override
|
||||
public BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ.Void init() {
|
||||
BãßBȍőnNumberMatrix注 anno = boon.getClass().getAnnotation(BãßBȍőnNumberMatrix注.class);
|
||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_DIMENSION, anno.dimension());
|
||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_MATRIX_DIMENSION, anno.dimension());
|
||||
return BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ.Void.實施;
|
||||
}
|
||||
|
||||
|
|
@ -41,8 +41,8 @@ public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrix
|
|||
}
|
||||
}
|
||||
|
||||
default int ráàmDimensie() {
|
||||
return toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_DIMENSION);
|
||||
default int teŀráàmMatrixDimensie() {
|
||||
return toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_MATRIX_DIMENSION);
|
||||
}
|
||||
|
||||
default int rȧñkNummerBlokGroote() {
|
||||
|
|
|
|||
|
|
@ -20,13 +20,18 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
|||
ײاللهזأَكْبَرײ;
|
||||
|
||||
private final Map<Integer, NumberMatrixSet> theMatrix;
|
||||
private static final int[] FILM_STUDIO_RECODINGS = new int[] {2,3,4,5,6};
|
||||
|
||||
private NumberMatrixFactory() {
|
||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(this);
|
||||
theMatrix = Collections.synchronizedMap(new HashMap<>());
|
||||
}
|
||||
|
||||
public NumberMatrixSet getFilmRol(int dimension) {
|
||||
public int[] opgenomenFilmNummers() {
|
||||
return FILM_STUDIO_RECODINGS;
|
||||
}
|
||||
|
||||
public NumberMatrixSet geefFilmSet(int dimension) {
|
||||
NumberMatrixSet result = theMatrix.get(dimension);
|
||||
if (result == null) {
|
||||
result = buildMatrixSet(dimension);
|
||||
|
|
@ -62,12 +67,12 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getDimension() {
|
||||
return values[0].ráàmDimensie();
|
||||
public int geefDimensie() {
|
||||
return values[0].teŀráàmMatrixDimensie();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BãßBȍőnNumberMatrixʸᴰ<?>[] values() {
|
||||
public BãßBȍőnNumberMatrixʸᴰ<?>[] waardes() {
|
||||
return values;
|
||||
}
|
||||
}
|
||||
|
|
@ -139,12 +144,12 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getDimension() {
|
||||
public int geefDimensie() {
|
||||
return dimension;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BãßBȍőnNumberMatrixʸᴰ<?>[] values() {
|
||||
public BãßBȍőnNumberMatrixʸᴰ<?>[] waardes() {
|
||||
return values;
|
||||
}
|
||||
|
||||
|
|
@ -171,12 +176,12 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
|||
}
|
||||
|
||||
@Override
|
||||
public Abacus[] ráàmWaardes() {
|
||||
public Abacus[] teŀráàmWaardes() {
|
||||
return values;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int ráàmDimensie() {
|
||||
public int teŀráàmMatrixDimensie() {
|
||||
return dimension;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
package love.distributedrebirth.bassboon.jpp.lang.number.matrix;
|
||||
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnDuytschen注;
|
||||
|
||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public interface NumberMatrixSet {
|
||||
|
||||
int getDimension();
|
||||
@BãßBȍőnDuytschen注(中國 = "給 方面", BASIC = "GET_DIMENSION", 𓃬𓍄𓋹𓀭 = "𓎸𓎡𓈏 𓌝𓇋𓅓𓎡𓌒𓆘𓇋𓎥𓈖")
|
||||
int geefDimensie();
|
||||
|
||||
BãßBȍőnNumberMatrixʸᴰ<?>[] values();
|
||||
@BãßBȍőnDuytschen注(中國 = "價值觀", BASIC = "VALUES", 𓃬𓍄𓋹𓀭 = "𓅱𓅂𓃭𓅱𓋴")
|
||||
BãßBȍőnNumberMatrixʸᴰ<?>[] waardes();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ public interface BãßBȍőnAbacus<T> {
|
|||
int rȧñkTelEen();
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 籙", BASIC = "ABACUS_VALUES", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴 𓅱𓅂𓃭𓅱𓋴")
|
||||
T[] ráàmWaardes();
|
||||
T[] teŀráàmWaardes();
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 尺寸", BASIC = "ABACUS_SIZE", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴 𓋴𓇋 𓋊")
|
||||
int ráàmGroote();
|
||||
int teŀráàmGroote();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
|
|||
|
||||
@Override
|
||||
public void lock() {
|
||||
boon.ráàmGroote();
|
||||
boon.ráàmWaardeVanRingToon(boon.rȧñkRingToon());
|
||||
boon.teŀráàmGroote();
|
||||
boon.teŀráàmWaardeVanRingToon(boon.rȧñkRingToon());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -71,10 +71,10 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
|
|||
}
|
||||
|
||||
@Override
|
||||
default int ráàmGroote() {
|
||||
default int teŀráàmGroote() {
|
||||
Integer result = toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_LENGTH);
|
||||
if (result == null) {
|
||||
result = ráàmWaardes().length;
|
||||
result = teŀráàmWaardes().length;
|
||||
toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_LENGTH, result);
|
||||
}
|
||||
return result;
|
||||
|
|
@ -82,7 +82,7 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
default T[] ráàmWaardes() {
|
||||
default T[] teŀráàmWaardes() {
|
||||
if (!getClass().isEnum()) {
|
||||
throw new IllegalArgumentException("Class is not an enum: "+getClass());
|
||||
}
|
||||
|
|
@ -90,20 +90,20 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
|
|||
}
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 籙 列表", BASIC = "ABACUS_VALUES_LIST", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴 𓅱𓅂𓃭𓅱𓋴 𓃭𓇋𓋴𓈏")
|
||||
default List<T> ráàmWaardesLijst() {
|
||||
return Arrays.asList(ráàmWaardes());
|
||||
default List<T> teŀráàmWaardesLijst() {
|
||||
return Arrays.asList(teŀráàmWaardes());
|
||||
}
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 籙 至 地圖", BASIC = "ABACUS_VALUES_TO_MAP", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴 𓅱𓅂𓃭𓅱𓋴 𓅲 𓅕𓅂𓉱")
|
||||
default Map<String,T> ráàmWaardesNaarMap(Function<T,String> keyMapper) {
|
||||
return ráàmWaardesLijst().stream().collect(Collectors.toMap(keyMapper, v -> v));
|
||||
default Map<String,T> teŀráàmWaardesNaarMap(Function<T,String> keyMapper) {
|
||||
return teŀráàmWaardesLijst().stream().collect(Collectors.toMap(keyMapper, v -> v));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
default T ráàmWaardeVanRingToon(String identifierTone) {
|
||||
default T teŀráàmWaardeVanRingToon(String identifierTone) {
|
||||
Map<String,Object> mapTone = toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_MAP_TONE);
|
||||
if (mapTone.isEmpty()) {
|
||||
mapTone.putAll(ráàmWaardesNaarMap(v -> v.rȧñkRingToon()));
|
||||
mapTone.putAll(teŀráàmWaardesNaarMap(v -> v.rȧñkRingToon()));
|
||||
}
|
||||
return (T) mapTone.get(identifierTone);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import love.distributedrebirth.bassboon.clazz.BãßBȍőnDuytschen注;
|
|||
public interface BãßBȍőnAbacusInstanceʸᴰ<T extends BãßBȍőnʸᴰ<T> & AbacusEnum & BãßBȍőnAbacus<T>> extends BãßBȍőnAbacusEnumBaseʸᴰ<T> {
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤", BASIC = "ABACUS", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴")
|
||||
default T ráàm() {
|
||||
return ráàmWaardes()[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO];
|
||||
default T teŀráàm() {
|
||||
return teŀráàmWaardes()[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ public interface BãßBȍőnAbacusSetʸᴰ<T extends BãßBȍőnʸᴰ<T> & Abacu
|
|||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 第一的", BASIC = "RANK_TO_FIRST", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓊲𓇋𓁹𓆘𓋶")
|
||||
default T rȧñkNaarEerste() {
|
||||
return ráàmWaardes()[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO];
|
||||
return teŀráàmWaardes()[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO];
|
||||
}
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 最後的", BASIC = "RANK_TO_LAST", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓆅𓅃𓆘𓋶")
|
||||
default T rȧñkNaarLaatste() {
|
||||
T[] values = ráàmWaardes();
|
||||
T[] values = teŀráàmWaardes();
|
||||
return values[values.length - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE];
|
||||
}
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 比鄰", BASIC = "RANK_TO_NEXT", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓌒𓎡𓋶𓌟")
|
||||
default T rȧñkNaarVolgende() {
|
||||
T[] values = ráàmWaardes();
|
||||
T[] values = teŀráàmWaardes();
|
||||
int resultIndex = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
|
||||
for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<values.length;i++) {
|
||||
if (this == values[i]) {
|
||||
|
|
@ -39,7 +39,7 @@ public interface BãßBȍőnAbacusSetʸᴰ<T extends BãßBȍőnʸᴰ<T> & Abacu
|
|||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 以前的", BASIC = "RANK_TO_PREVIOUS", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓉯𓏓𓅦𓇏𓅱")
|
||||
default T rȧñkNaarVorige() {
|
||||
T[] values = ráàmWaardes();
|
||||
T[] values = teŀráàmWaardes();
|
||||
int resultIndex = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
|
||||
for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<values.length;i++) {
|
||||
if (this == values[i]) {
|
||||
|
|
@ -54,8 +54,8 @@ public interface BãßBȍőnAbacusSetʸᴰ<T extends BãßBȍőnʸᴰ<T> & Abacu
|
|||
}
|
||||
|
||||
@BãßBȍőnDuytschen注(中國 = "算盤 對於 每個", BASIC = "ABACUS_FOR_EACH", 𓃬𓍄𓋹𓀭 = "𓅂𓃀𓅂𓎡𓅱𓋴 𓆑𓁹 𓇋𓏀")
|
||||
default void ráàmVoorElk(Consumer<T> consumer) {
|
||||
for (T value:ráàmWaardes()) {
|
||||
default void teŀráàmVoorElk(Consumer<T> consumer) {
|
||||
for (T value:teŀráàmWaardes()) {
|
||||
consumer.accept(value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,19 +3,35 @@ package love.distributedrebirth.bassboon.jpp.lang;
|
|||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboon.Bãß;
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.M04MatrixQuad;
|
||||
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.NumberMatrixFactory;
|
||||
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.NumberMatrixSet;
|
||||
|
||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class NumberMatrixFactoryTest {
|
||||
|
||||
@Test
|
||||
public void testMatrix4() {
|
||||
Assertions.assertEquals(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO, M04MatrixQuad.M_0099.rȧñkNaarEerste().rȧñkTelNul());
|
||||
Assertions.assertEquals(M04MatrixQuad.values().length, M04MatrixQuad.M_0099.rȧñkNaarVolgende().rȧñkNaarVolgende().teŀráàmGroote());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTweetSmall() {
|
||||
public void testFilmStudio() {
|
||||
for (int filmSequence:NumberMatrixFactory.ײاللهזأَكْبَرײ.opgenomenFilmNummers()) {
|
||||
NumberMatrixSet film = NumberMatrixFactory.ײاللهזأَكْبَرײ.geefFilmSet(filmSequence);
|
||||
Assertions.assertEquals(filmSequence, film.geefDimensie());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFilmRoles() {
|
||||
for (int i=2;i<4;i++) {
|
||||
NumberMatrixSet film = NumberMatrixFactory.ײاللهזأَكْبَرײ.getFilmRol(i);
|
||||
Assertions.assertEquals(i, film.getDimension());
|
||||
System.out.println("dimension: "+film.getDimension()+" size: "+film.values().length);
|
||||
NumberMatrixSet film = NumberMatrixFactory.ײاللهזأَكْبَرײ.geefFilmSet(i);
|
||||
Assertions.assertEquals(i, film.geefDimensie());
|
||||
System.out.println("dimension: "+film.geefDimensie()+" size: "+film.waardes().length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue