Class TypeUtils

java.lang.Object
com.atlan.util.TypeUtils

public class TypeUtils extends Object
  • Constructor Details

    • TypeUtils

      public TypeUtils()
  • Method Details

    • isComparable

      public static boolean isComparable(String attrType, TypeUtils.ComparisonCategory to)
      Checks whether the provided attribute definition's type is comparable to the specified type.
      Parameters:
      attrType - of the attribute definition
      to - general class of comparisons to check are valid for the type
      Returns:
      true only if the attribute definition could be logically compared using the general class of comparisons
    • getBaseType

      public static String getBaseType(String attrType)
      Determine the base type of the attribute, including when it's values are contained in an array or map.
      Parameters:
      attrType - data type of the attribute
      Returns:
      the most granular contained type of the attribute's values