Added annotation annotation
This commit is contained in:
parent
229da4b4ca
commit
92408b67c3
|
@ -0,0 +1,17 @@
|
||||||
|
package love.distributedrebirth.bassboonyd;
|
||||||
|
|
||||||
|
import java.lang.annotation.Annotation;
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target({ElementType.TYPE})
|
||||||
|
public @interface BãßBȍőnAnnotationInfoʸᴰ {
|
||||||
|
|
||||||
|
Class<? extends Annotation>[] required();
|
||||||
|
|
||||||
|
Class<? extends Annotation>[] optional() default {};
|
||||||
|
}
|
|
@ -6,6 +6,8 @@ import java.util.Map;
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
public interface BãßBȍőnCoffinOpenʸᴰ<T extends BãßBȍőnCoffinStoreKeyʸᴰ> extends BãßBȍőnCoffinʸᴰ<T> {
|
public interface BãßBȍőnCoffinOpenʸᴰ<T extends BãßBȍőnCoffinStoreKeyʸᴰ> extends BãßBȍőnCoffinʸᴰ<T> {
|
||||||
|
|
||||||
|
void LOCK_COFFIN();
|
||||||
|
|
||||||
Object PUT_OBJ(T key, Object value);
|
Object PUT_OBJ(T key, Object value);
|
||||||
|
|
||||||
default void PUT_MAP(T key) {
|
default void PUT_MAP(T key) {
|
||||||
|
@ -19,6 +21,12 @@ public interface BãßBȍőnCoffinOpenʸᴰ<T extends BãßBȍőnCoffinStoreKey
|
||||||
static <Y extends BãßBȍőnCoffinStoreKeyʸᴰ> BãßBȍőnCoffinOpenʸᴰ<Y> newInstance() {
|
static <Y extends BãßBȍőnCoffinStoreKeyʸᴰ> BãßBȍőnCoffinOpenʸᴰ<Y> newInstance() {
|
||||||
return new BãßBȍőnCoffinOpenʸᴰ<Y>() {
|
return new BãßBȍőnCoffinOpenʸᴰ<Y>() {
|
||||||
final Map<Y,Object> initMap = new HashMap<>();
|
final Map<Y,Object> initMap = new HashMap<>();
|
||||||
|
volatile boolean deathLock = false;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void LOCK_COFFIN() {
|
||||||
|
deathLock = true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object GET_OBJ(Y key) {
|
public Object GET_OBJ(Y key) {
|
||||||
|
@ -27,6 +35,9 @@ public interface BãßBȍőnCoffinOpenʸᴰ<T extends BãßBȍőnCoffinStoreKey
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object PUT_OBJ(Y key, Object value) {
|
public Object PUT_OBJ(Y key, Object value) {
|
||||||
|
if (deathLock) {
|
||||||
|
throw new IllegalStateException("Can't cheat death in closed coffin.");
|
||||||
|
}
|
||||||
return initMap.put(key, value);
|
return initMap.put(key, value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package love.distributedrebirth.bassboonyd;
|
package love.distributedrebirth.bassboonyd;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class})
|
||||||
public interface BãßBȍőnEnumʸᴰ<T> {
|
public interface BãßBȍőnEnumʸᴰ<T> {
|
||||||
|
|
||||||
String name();
|
String name();
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.glyph;
|
package love.distributedrebirth.numberxd.base2t.glyph;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ;
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnGlyphSetNumberInfoʸᴰ.class})
|
||||||
public interface BaseGlyphSetNumber {
|
public interface BaseGlyphSetNumber {
|
||||||
|
|
||||||
default BaseGlyphSetNumberType BãßNumberType() {
|
default BaseGlyphSetNumberType BãßNumberType() {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part;
|
package love.distributedrebirth.numberxd.base2t.part;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ;
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt1Infoʸᴰ.class})
|
||||||
public interface BãßBȍőnPartAlt1ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartʸᴰ<T> {
|
public interface BãßBȍőnPartAlt1ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartʸᴰ<T> {
|
||||||
|
|
||||||
default String BȍőnAlt1Value() {
|
default String BȍőnAlt1Value() {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part;
|
package love.distributedrebirth.numberxd.base2t.part;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ;
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt2Infoʸᴰ.class})
|
||||||
public interface BãßBȍőnPartAlt2ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt1ʸᴰ<T> {
|
public interface BãßBȍőnPartAlt2ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt1ʸᴰ<T> {
|
||||||
|
|
||||||
default String BȍőnAlt2Value() {
|
default String BȍőnAlt2Value() {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part;
|
package love.distributedrebirth.numberxd.base2t.part;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ;
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt3Infoʸᴰ.class})
|
||||||
public interface BãßBȍőnPartAlt3ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt2ʸᴰ<T> {
|
public interface BãßBȍőnPartAlt3ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt2ʸᴰ<T> {
|
||||||
|
|
||||||
default String BȍőnAlt3Value() {
|
default String BȍőnAlt3Value() {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part;
|
package love.distributedrebirth.numberxd.base2t.part;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ;
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt4Infoʸᴰ.class})
|
||||||
public interface BãßBȍőnPartAlt4ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt3ʸᴰ<T> {
|
public interface BãßBȍőnPartAlt4ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt3ʸᴰ<T> {
|
||||||
|
|
||||||
default String BȍőnAlt4Value() {
|
default String BȍőnAlt4Value() {
|
||||||
|
|
Loading…
Reference in a new issue