Package ai.chalk.internal
Class Utils
java.lang.Object
ai.chalk.internal.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringconvertBucketDurationToSeconds(String duration) static Object[]convertToArrayOfObjects(Object array) static StringformatBucketDuration(int duration) static Stringstatic FieldgetFieldFromFqn(Class<?> clazz, String fqn) static Class<?>getInnerTypeFromListField(Field field) static Class<?>getInnerTypeFromListType(Type genericType) static StringgetResolvedName(Field field) static booleanstatic <T> T[]listToArray(List<T> list, Class<T> clazz) static StringtoChalkDuration(Duration duration) static com.google.protobuf.Value
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getResolvedName
-
chalkpySnakeCase
-
listToArray
-
getDotDelimitedLastSection
-
getFieldFromFqn
- Throws:
Exception
-
getInnerTypeFromListType
- Throws:
Exception
-
getInnerTypeFromListField
- Throws:
Exception
-
isInteger
-
formatBucketDuration
-
convertBucketDurationToSeconds
-
convertToArrayOfObjects
-
toChalkDuration
-
toProto
-