Class Classes

java.lang.Object
com.cumulocity.model.util.Classes

public final class Classes extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Check if the given type represents a "simple" property: a primitive, a String or other CharSequence, a Number, a Date, a URI, a URL, a Locale, a Class, or a corresponding array.
    static boolean
    Check if the given type represents a "simple" value type: a primitive, a String or other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isSimpleProperty

      public static boolean isSimpleProperty(Class<?> clazz)
      Check if the given type represents a "simple" property: a primitive, a String or other CharSequence, a Number, a Date, a URI, a URL, a Locale, a Class, or a corresponding array. Used to determine properties to check for a "simple" dependency-check. Params: clazz – the type to check Returns: whether the given type represents a "simple" property
    • isSimpleValueType

      public static boolean isSimpleValueType(Class<?> clazz)
      Check if the given type represents a "simple" value type: a primitive, a String or other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class.
      Parameters:
      clazz - the type to check
      Returns:
      whether the given type represents a "simple" value type