Renamed init
This commit is contained in:
parent
303f700b51
commit
e3a4fbf3bd
33 changed files with 70 additions and 69 deletions
|
|
@ -29,11 +29,12 @@ public interface Bãß {
|
|||
/**
|
||||
* Sarcophagus aggregates Y-Dimensions.
|
||||
*/
|
||||
public static final class 石棺ʸᴰ {
|
||||
private static final Map<Object, BȍőnGrave> GRAVE_YARD = new WeakHashMap<>();
|
||||
private static final ReadWriteLock FUNERAL = new ReentrantReadWriteLock();
|
||||
private static final Lock FUNERAL_BIBLE = FUNERAL.readLock();
|
||||
private static final Lock FUNERAL_SHEMIRA = FUNERAL.writeLock();
|
||||
static enum 石棺ʸᴰ {
|
||||
ײاللهזأَكْبَرײ;
|
||||
private final Map<Object, BȍőnGrave> יְרוּשָׁלַיִם = new WeakHashMap<>();
|
||||
private final ReadWriteLock 魎 = new ReentrantReadWriteLock(); // Mononoke Lock
|
||||
private final Lock 魎_BIBLE = 魎.readLock();
|
||||
private final Lock 魎_SHEMIRA = 魎.writeLock();
|
||||
|
||||
/**
|
||||
* Sarcophagus is closed for humans.
|
||||
|
|
@ -42,50 +43,50 @@ public interface Bãß {
|
|||
}
|
||||
|
||||
/**
|
||||
* Mononoke Init
|
||||
* RÅ...........Init
|
||||
*/
|
||||
public static final <T extends BãßBȍőnʸᴰ<T>> void 魎ᴵⁿᶦᵗ(BãßBȍőnʸᴰ<T> boon) {
|
||||
挖ᵀᵒ(boon).init(boon);
|
||||
public final <T extends BãßBȍőnʸᴰ<T>> void 𓂀ױןייזדזיודזיןןזזזןױ𓉢(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
挖ᵀᵒ(derKnochen).init(derKnochen);
|
||||
}
|
||||
|
||||
/**
|
||||
* Grave Lock
|
||||
*/
|
||||
public static final <T extends BãßBȍőnʸᴰ<T>> void 墳ᴸᵒᶜᵏ(BãßBȍőnʸᴰ<T> boon) {
|
||||
挖ᵀᵒ(boon).lock(boon);
|
||||
public final <T extends BãßBȍőnʸᴰ<T>> void 墳ᴸᵒᶜᵏ(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
挖ᵀᵒ(derKnochen).lock(derKnochen);
|
||||
}
|
||||
|
||||
/**
|
||||
* Coffin Of
|
||||
*/
|
||||
protected static final <T extends BãßBȍőnʸᴰ<T>> BãßBȍőnCoffin 棺ᴼᶠ(BãßBȍőnʸᴰ<T> boon) {
|
||||
return 挖ᵀᵒ(boon);
|
||||
protected final <T extends BãßBȍőnʸᴰ<T>> BãßBȍőnCoffin 棺ᴼᶠ(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
return 挖ᵀᵒ(derKnochen);
|
||||
}
|
||||
protected static final <T extends BãßBȍőnʸᴰ<T>, G extends BãßBȍőnCoffinDuytschenᵗˣᵗ> G 棺ᴼᶠ(BãßBȍőnʸᴰ<T> boon, Class<G> duytschen) {
|
||||
return 挖ᵀᵒ(boon).ₜₒI18Nᵗˣᵗ(duytschen);
|
||||
protected final <T extends BãßBȍőnʸᴰ<T>, G extends BãßBȍőnCoffinDuytschenᵗˣᵗ> G 棺ᴼᶠ(BãßBȍőnʸᴰ<T> derKnochen, Class<G> duytschen) {
|
||||
return 挖ᵀᵒ(derKnochen).ₜₒI18Nᵗˣᵗ(duytschen);
|
||||
}
|
||||
|
||||
/**
|
||||
* Dig To
|
||||
*/
|
||||
private static final <T extends BãßBȍőnʸᴰ<T>> BȍőnGrave 挖ᵀᵒ(BãßBȍőnʸᴰ<T> boon) {
|
||||
BȍőnGrave boonGrave = null;
|
||||
FUNERAL_BIBLE.lock();
|
||||
private final <T extends BãßBȍőnʸᴰ<T>> BȍőnGrave 挖ᵀᵒ(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
BȍőnGrave 𓁀 = null;
|
||||
魎_BIBLE.lock();
|
||||
try {
|
||||
boonGrave = GRAVE_YARD.get(boon);
|
||||
𓁀 = יְרוּשָׁלַיִם.get(derKnochen);
|
||||
} finally {
|
||||
FUNERAL_BIBLE.unlock();
|
||||
魎_BIBLE.unlock();
|
||||
}
|
||||
if (boonGrave == null) {
|
||||
FUNERAL_SHEMIRA.lock();
|
||||
if (𓁀 == null) {
|
||||
魎_SHEMIRA.lock();
|
||||
try {
|
||||
boonGrave = new BȍőnGrave();
|
||||
GRAVE_YARD.put(boon, boonGrave);
|
||||
𓁀 = new BȍőnGrave();
|
||||
יְרוּשָׁלַיִם.put(derKnochen, 𓁀);
|
||||
} finally {
|
||||
FUNERAL_SHEMIRA.unlock();
|
||||
魎_SHEMIRA.unlock();
|
||||
}
|
||||
}
|
||||
return boonGrave;
|
||||
return 𓁀;
|
||||
}
|
||||
/*
|
||||
public static <T> BeanWrapper<T> 豆ᴺᴱᵂ(Class<T> seedling) { // bean-new
|
||||
|
|
@ -131,19 +132,19 @@ public interface Bãß {
|
|||
BãßBȍőnCoffinDuytschenᵗˣᵗ.ײₚᵤₜI18Nᵗˣᵗײ(duytschenCoffins, this);
|
||||
}
|
||||
|
||||
private <T extends BãßBȍőnʸᴰ<T>> void init(BãßBȍőnʸᴰ<T> boon) {
|
||||
private <T extends BãßBȍőnʸᴰ<T>> void init(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
if (inited) {
|
||||
return;
|
||||
}
|
||||
BãßBȍőnPirateLoader.INIT_BONE_MAGIC(boon, spider, duytschenCoffins);
|
||||
BãßBȍőnPirateLoader.INIT_BONE_MAGIC(derKnochen, spider, duytschenCoffins);
|
||||
inited = true;
|
||||
}
|
||||
|
||||
private <T extends BãßBȍőnʸᴰ<T>> void lock(BãßBȍőnʸᴰ<T> boon) {
|
||||
private <T extends BãßBȍőnʸᴰ<T>> void lock(BãßBȍőnʸᴰ<T> derKnochen) {
|
||||
if (locked) {
|
||||
return;
|
||||
}
|
||||
BãßBȍőnPirateLoader.LOCK_BONE_MAGIC(boon, spider);
|
||||
BãßBȍőnPirateLoader.LOCK_BONE_MAGIC(derKnochen, spider);
|
||||
for (Class<?> familyName:new ArrayList<>(ghosts.keySet())) {
|
||||
BãßBȍőnCoffinGhost ghost = ghosts.get(familyName);
|
||||
ghosts.put(familyName, BãßBȍőnCoffinGhostSpellLock.castᴼᶠ(ghost).LOCK());
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ public interface BãßBȍőnʸᴰ<T extends BãßBȍőnʸᴰ<T>> {
|
|||
// }
|
||||
|
||||
default BãßBȍőnCoffin toBBC() {
|
||||
return Bãß.石棺ʸᴰ.棺ᴼᶠ(this); // ...to seek 6 bit BASIC death, so the blind can see
|
||||
return Bãß.石棺ʸᴰ.ײاللهזأَكْبَرײ.棺ᴼᶠ(this); // ...to seek 6 bit BASIC death, so the blind can see
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrix
|
|||
}
|
||||
|
||||
@SafeVarargs
|
||||
public static <Y extends BãßBȍőnNumberMatrixʸᴰ<Y>> void 魎ᴵⁿᶦᵗ(Y boon, int dialTone, int...args) {
|
||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(boon);
|
||||
public static <Y extends BãßBȍőnNumberMatrixʸᴰ<Y>> void יהוהʸᴰ(Y boon, int dialTone, int...args) {
|
||||
Bãß.石棺ʸᴰ.ײاللهזأَكْبَرײ.𓂀ױןייזדזיודזיןןזזזןױ𓉢(boon);
|
||||
boon.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).rȧñkRingToonInluiden(Integer.toHexString(dialTone).toUpperCase());
|
||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST_LIST(GHOST_NUMBER_BLOCK);
|
||||
for (int arg:args) {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ public enum M02MatrixBinary implements BãßBȍőnNumberMatrixʸᴰ<M02MatrixBin
|
|||
public final static M02MatrixBinary STATIC = M02MatrixBinary.M_01;
|
||||
|
||||
private M02MatrixBinary(int dialTone, int...args) {
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ public enum M03MatrixTrit implements BãßBȍőnNumberMatrixʸᴰ<M03MatrixTrit>
|
|||
public final static M03MatrixTrit STATIC = M03MatrixTrit.M_005;
|
||||
|
||||
private M03MatrixTrit(int dialTone, int...args) {
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,6 @@ public enum M04MatrixQuad implements BãßBȍőnNumberMatrixʸᴰ<M04MatrixQuad>
|
|||
public final static M04MatrixQuad STATIC = M04MatrixQuad.M_0027;
|
||||
|
||||
private M04MatrixQuad(int dialTone, int...args) {
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,6 +130,6 @@ public enum M05MatrixPental implements BãßBȍőnNumberMatrixʸᴰ<M05MatrixPen
|
|||
public final static M05MatrixPental STATIC = M05MatrixPental.M_00194;
|
||||
|
||||
private M05MatrixPental(int dialTone, int...args) {
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -730,6 +730,6 @@ public enum M06MatrixSeximal implements BãßBȍőnNumberMatrixʸᴰ<M06MatrixSe
|
|||
public final static M06MatrixSeximal STATIC = M06MatrixSeximal.M_001865;
|
||||
|
||||
private M06MatrixSeximal(int dialTone, int...args) {
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ import love.distributedrebirth.bassboon.yd.abacus.BãßBȍőnAbacusInstanceMBean
|
|||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
@BãßBȍőnDuytsFlüstern注(purpose = "Dynamic acces to the number matrix")
|
||||
public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<NumberMatrixFactory> {
|
||||
ײاللهזأَكْبَرײ;
|
||||
INSTANCE;
|
||||
|
||||
private final Map<Integer, NumberMatrixSet> theMatrix;
|
||||
private static final int[] FILM_STUDIO_RECODINGS = new int[] {2,3,4,5,6};
|
||||
|
||||
private NumberMatrixFactory() {
|
||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(this);
|
||||
Bãß.石棺ʸᴰ.ײاللهזأَكْبَرײ.𓂀ױןייזדזיודזיןןזזזןױ𓉢(this);
|
||||
theMatrix = Collections.synchronizedMap(new HashMap<>());
|
||||
}
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
|||
private Abacus(int itemOrdinal, String itemName, int dialTone, int...args) {
|
||||
this.itemOrdinal = itemOrdinal;
|
||||
this.itemName = itemName;
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.魎ᴵⁿᶦᵗ(this, dialTone, args);
|
||||
BãßBȍőnNumberMatrixʸᴰ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ public class NumberMatrixFactoryTest {
|
|||
|
||||
@Test
|
||||
public void testFilmStudio() {
|
||||
for (int filmSequence:NumberMatrixFactory.ײاللهזأَكْبَرײ.opgenomenFilmNummers()) {
|
||||
NumberMatrixSet film = NumberMatrixFactory.ײاللهזأَكْبَرײ.geefFilmSet(filmSequence);
|
||||
for (int filmSequence:NumberMatrixFactory.INSTANCE.opgenomenFilmNummers()) {
|
||||
NumberMatrixSet film = NumberMatrixFactory.INSTANCE.geefFilmSet(filmSequence);
|
||||
Assertions.assertEquals(filmSequence, film.geefDimensie());
|
||||
}
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ public class NumberMatrixFactoryTest {
|
|||
@Test
|
||||
public void testFilmSizes() {
|
||||
for (int i=2;i<4;i++) {
|
||||
NumberMatrixSet film = NumberMatrixFactory.ײاللهזأَكْبَرײ.geefFilmSet(i);
|
||||
NumberMatrixSet film = NumberMatrixFactory.INSTANCE.geefFilmSet(i);
|
||||
Assertions.assertEquals(i, film.geefDimensie());
|
||||
Assertions.assertEquals(film.waardes().sizeᴿᵈ(), film.waardes().getᴿᵈ(0).teŀráàmGroote());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue