Package com.atlan.util
Class TypeUtils
java.lang.Object
com.atlan.util.TypeUtils
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBaseType
(String attrType) Determine the base type of the attribute, including when it's values are contained in an array or map.static boolean
isComparable
(String attrType, TypeUtils.ComparisonCategory to) Checks whether the provided attribute definition's type is comparable to the specified type.
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
-
Method Details
-
isComparable
Checks whether the provided attribute definition's type is comparable to the specified type.- Parameters:
attrType
- of the attribute definitionto
- 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
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
-