98 lines
2.7 KiB
Java
98 lines
2.7 KiB
Java
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ;
|
||
|
||
import java.util.List;
|
||
import java.util.Map;
|
||
|
||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringGhostKey;
|
||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringUnicode;
|
||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||
|
||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||
public interface BãßBȍőnCoffinGhost {
|
||
|
||
Object GHOST_OBJ(StringGhostKey key);
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default <Y> Y GHOST_OBJ(StringGhostKey key, Class<Y> type) {
|
||
return (Y) GHOST_OBJ(key);
|
||
}
|
||
|
||
default StringUnicode GHOST_UNICODE(StringGhostKey key) {
|
||
return StringUnicode.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default String GHOST_STR(StringGhostKey key) {
|
||
return String.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Short GHOST_SHORT(StringGhostKey key) {
|
||
return Short.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Character GHOST_CHAR(StringGhostKey key) {
|
||
return Character.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Integer GHOST_INT(StringGhostKey key) {
|
||
return Integer.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Long GHOST_LONG(StringGhostKey key) {
|
||
return Long.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Boolean GHOST_BOOL(StringGhostKey key) {
|
||
return Boolean.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Float GHOST_FLOAT(StringGhostKey key) {
|
||
return Float.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Double GHOST_DOUBLE(StringGhostKey key) {
|
||
return Double.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default Map<String,Object> GHOST_MAP_OBJ(StringGhostKey key) {
|
||
return Map.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Object GHOST_MAP_OBJ_VALUE(StringGhostKey key, String mapKey) {
|
||
return GHOST_MAP_OBJ(key).get(mapKey);
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default Map<String,String> GHOST_MAP_STR(StringGhostKey key) {
|
||
return Map.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default String GHOST_MAP_STR_VALUE(StringGhostKey key, String mapKey) {
|
||
return GHOST_MAP_STR(key).get(mapKey);
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default Map<String,Integer> GHOST_MAP_INT(StringGhostKey key) {
|
||
return Map.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
default Integer GHOST_MAP_INT_VALUE(StringGhostKey key, String mapKey) {
|
||
return GHOST_MAP_INT(key).get(mapKey);
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default List<Object> GHOST_LIST_OBJ(StringGhostKey key) {
|
||
return List.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default List<String> GHOST_LIST_STR(StringGhostKey key) {
|
||
return List.class.cast(GHOST_OBJ(key));
|
||
}
|
||
|
||
@SuppressWarnings("unchecked")
|
||
default List<Integer> GHOST_LIST_INT(StringGhostKey key) {
|
||
return List.class.cast(GHOST_OBJ(key));
|
||
}
|
||
}
|