Class BuiltInTypes

java.lang.Object
org.eclipse.yasson.internal.BuiltInTypes

public class BuiltInTypes extends Object
Types which are supported by the Yasson by default.
  • Field Details

    • BUILD_IN_SUPPORT

      private static final Set<Class<?>> BUILD_IN_SUPPORT
  • Constructor Details

    • BuiltInTypes

      private BuiltInTypes()
  • Method Details

    • isClassAvailable

      public static boolean isClassAvailable(String className)
      Check whether the class is available.
      Parameters:
      className - name of the checked class
      Returns:
      true if available, otherwise false
    • isKnownType

      public static boolean isKnownType(Class<?> clazz)
      Whether the type is a supported type by default.
      Parameters:
      clazz - type to check
      Returns:
      whether is supported
    • findIfClassIsSupported

      private static boolean findIfClassIsSupported(Class<?> clazz)