Class TypeUtility

java.lang.Object
studio.mevera.imperat.util.TypeUtility

public final class TypeUtility extends Object
  • Method Details

    • isInteger

      public static boolean isInteger(String string)
    • isBoolean

      public static boolean isBoolean(String string)
    • isFloat

      public static boolean isFloat(String input)
    • isDouble

      public static boolean isDouble(String str)
    • isShort

      public static boolean isShort(String str)
    • isByte

      public static boolean isByte(String str)
    • isLong

      public static boolean isLong(String str)
    • isNumericType

      public static boolean isNumericType(Class<?> type)
    • isNumericType

      public static boolean isNumericType(TypeWrap<?> token)
    • isPrimitive

      public static boolean isPrimitive(Type type)
    • isBoxed

      public static boolean isBoxed(Type type)
    • primitiveToBoxed

      @NotNull public static @NotNull Type primitiveToBoxed(Type primitive)
    • boxedToPrimative

      @NotNull public static @NotNull Type boxedToPrimative(Type boxed)
    • matches

      public static boolean matches(@NotNull @NotNull Type type1, @NotNull @NotNull Type type2)
    • getInsideGeneric

      public static Type getInsideGeneric(Type genericType, Type fallback)
    • getComponentType

      public static Type getComponentType(Type type)
    • areRelatedTypes

      public static boolean areRelatedTypes(Type type1, Type type2)
    • isNumber

      public static boolean isNumber(String str)
    • isAcceptableGreedyWrapper

      public static boolean isAcceptableGreedyWrapper(Type type)
    • hasGenericType

      public static boolean hasGenericType(@NotNull @NotNull Type type, @NotNull @NotNull Type genericToFind)
    • areTrueFlagsOfSameInputTpe

      public static <S extends Source> boolean areTrueFlagsOfSameInputTpe(Set<FlagData<S>> flagDataSet)