Package studio.mevera.imperat.util
Class TypeUtility
java.lang.Object
studio.mevera.imperat.util.TypeUtility
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareRelatedTypes(Type type1, Type type2) static <S extends Source>
booleanareTrueFlagsOfSameInputTpe(Set<FlagData<S>> flagDataSet) static @NotNull TypeboxedToPrimative(Type boxed) static TypegetComponentType(Type type) static TypegetInsideGeneric(Type genericType, Type fallback) static booleanhasGenericType(@NotNull Type type, @NotNull Type genericToFind) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisNumericType(Class<?> type) static booleanisNumericType(TypeWrap<?> token) static booleanisPrimitive(Type type) static booleanstatic booleanstatic @NotNull TypeprimitiveToBoxed(Type primitive)
-
Method Details
-
isInteger
-
isBoolean
-
isFloat
-
isDouble
-
isShort
-
isByte
-
isLong
-
isNumericType
-
isNumericType
-
isPrimitive
-
isBoxed
-
primitiveToBoxed
-
boxedToPrimative
-
matches
-
getInsideGeneric
-
getComponentType
-
areRelatedTypes
-
isNumber
-
isAcceptableGreedyWrapper
-
hasGenericType
-
areTrueFlagsOfSameInputTpe
-