Created DefaultBãßBȍőn interface
This commit is contained in:
parent
3acc28dbbf
commit
2e29efb5fe
78 changed files with 963 additions and 606 deletions
|
|
@ -8,50 +8,59 @@ import java.util.function.Function;
|
|||
import java.util.stream.Collectors;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public interface DefaultEnumSetʸᴰ<T> extends DefaultEnumBaseʸᴰ<T> {
|
||||
public interface DefaultEnumSetʸᴰ<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> extends DefaultEnumBaseʸᴰ<T,K> {
|
||||
|
||||
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||||
private static final String GHOST_KEY_RANG_TEL_EEN = "rangTelEen";
|
||||
|
||||
@BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC)
|
||||
private static void init(DefaultEnumSetʸᴰ<?,?> boon, BãßBȍőnCoffinOpenʸᴰ<?> BBC) {
|
||||
BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_RANG_TEL_EEN, boon.BȍőnRangTelNul() + BãßBȍőnConstantsʸᴰ.INT_ONE);
|
||||
}
|
||||
}
|
||||
|
||||
default int BȍőnRangTelNul() {
|
||||
return ordinal();
|
||||
}
|
||||
|
||||
default int BȍőnRangTelEen() {
|
||||
return ordinal() + 1;
|
||||
return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_KEY_RANG_TEL_EEN);
|
||||
}
|
||||
|
||||
default List<T> BãßInstancesList() {
|
||||
return Arrays.asList(BãßInstances());
|
||||
}
|
||||
|
||||
default <K> Map<K,T> BãßInstancesToMap(Function<T,K> keyMapper) {
|
||||
default Map<String,T> BãßInstancesToMap(Function<T,String> keyMapper) {
|
||||
return BãßInstancesList().stream().collect(Collectors.toMap(keyMapper, v -> v));
|
||||
}
|
||||
|
||||
default T BȍőnVolgende() {
|
||||
T[] values = BãßInstances();
|
||||
int resultIndex = 0;
|
||||
for (int i=0;i<values.length;i++) {
|
||||
int resultIndex = BãßBȍőnConstantsʸᴰ.INT_ZERO;
|
||||
for (int i=BãßBȍőnConstantsʸᴰ.INT_ZERO;i<values.length;i++) {
|
||||
if (this == values[i]) {
|
||||
resultIndex = i + 1;
|
||||
resultIndex = i + BãßBȍőnConstantsʸᴰ.INT_ONE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (resultIndex == values.length) {
|
||||
resultIndex = 0;
|
||||
resultIndex = BãßBȍőnConstantsʸᴰ.INT_ZERO;
|
||||
}
|
||||
return values[resultIndex];
|
||||
}
|
||||
|
||||
default T BȍőnVorige() {
|
||||
T[] values = BãßInstances();
|
||||
int resultIndex = 0;
|
||||
for (int i=0;i<values.length;i++) {
|
||||
int resultIndex = BãßBȍőnConstantsʸᴰ.INT_ZERO;
|
||||
for (int i=BãßBȍőnConstantsʸᴰ.INT_ZERO;i<values.length;i++) {
|
||||
if (this == values[i]) {
|
||||
resultIndex = i - 1;
|
||||
resultIndex = i - BãßBȍőnConstantsʸᴰ.INT_ONE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (resultIndex < 0) {
|
||||
resultIndex = values.length - 1;
|
||||
if (resultIndex < BãßBȍőnConstantsʸᴰ.INT_ZERO) {
|
||||
resultIndex = values.length - BãßBȍőnConstantsʸᴰ.INT_ONE;
|
||||
}
|
||||
return values[resultIndex];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue