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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue