C3 AI Documentation Home

Version 7 to Version 8 Upgrade - Type method changes

The following methods have changed from Version 7 to Version 8.

TypeVersion 7Version 8
AssertassertEventuallyTrueAssert#assertEventualTrue
Base64decodeLongBase64#decodeInt
Base64encodeLongBase64#encodeInt
CloudResourceFieldswithDefaultsCloudResourceFields#withDefaultConfig
ContentTypeisJsContentType#isJavaScript
ContentTypeisPyContentType#isPython
ContentTypejsContentType#javaScript
ContentTypepyContentType#python
DateTimenow()DateTime#nowWithMillis
DateTimenowWithoutZone()DateTime#nowWithMillisNoZone
DateTimemake(int, int, int, int, int)DateTime#fromMinute
DateTimemake(int, int, int, int, int, int)DateTime#fromSecond
DateTimemake(int, int, int, int, int, int, int)DateTime#fromMillis
DateTimemake(int, int, int, int, int, int, int, int)DateTime#fromMillis
DateTimemake(long int)DateTime#fromMillis
DateTimemake(long int, int)DateTime#fromMillis
DateTimemake(long int, null)DateTime#fromMillisNoZone
DateTimemake(string)DateTime#fromString
DateTimeparse(string)DateTime#fromString
DateTimedeserialize(string)DateTime#fromString
DateTimedeserialize(string, string)DateTime#fromString
DateTimeserialize()DateTime#toString
DateTimeparse(string, string)DateTime#parseLocal
DateTimewithoutZone(long int)DateTime#fromMillisNoZone
DateTimegetDate()DateTime#dayOfMonth
DateTimegetDayOfMonth()DateTime#dayOfMonth
DateTimegetDayOfWeek()DateTime#dayOfWeek
DateTimegetDayOfYear()DateTime#dayOfYear
DateTimegetDaysInMonth()DateTime#daysInCurrentMonth
DateTimegetDaysInMonth(int, int)DateTime#daysInMonth
DateTimegetFullYear()DateTime#year
DateTimegetHourOfDay()DateTime#hourOfDay
DateTimegetHours()DateTime#hourOfDay
DateTimegetMillis()DateTime#millis
DateTimegetMillisOfDay()DateTime#millisOfDay
DateTimegetMillisOfSecond()DateTime#millisOfSecond
DateTimegetMilliseconds()DateTime#millisOfSecond
DateTimegetMinuteOfDay()DateTime#minuteOfDay
DateTimegetMinuteOfHour()DateTime#minuteOfHour
DateTimegetMinutes()DateTime#minuteOfHour
DateTimegetMonth()DateTime#monthOfYear
DateTimegetMonthOfYear()DateTime#monthOfYear
DateTimegetSecondOfDay()DateTime#secondOfDay
DateTimegetSecondOfMinute()DateTime#secondOfMinute
DateTimegetSeconds()DateTime#secondOfMinute
DateTimegetTime()DateTime#millis
DateTimegetTimezoneOffset()DateTime#zoneOffsetMinutes
DateTimegetUTCDate()DateTime#withoutZone().dayOfMonth
DateTimegetUTCFullYear()DateTime#withoutZone().year
DateTimegetUTCHours()DateTime#withoutZone().hourOfDay
DateTimegetUTCMilliseconds()DateTime#withoutZone().millisOfSecond
DateTimegetUTCMinutes()DateTime#withoutZone().minuteOfHour
DateTimegetUTCMonth()DateTime#withoutZone().monthOfYear
DateTimegetUTCSeconds()DateTime#withoutZone().secondOfMinute
DateTimegetYear()DateTime#year
DateTimegetYearOfCentury()DateTime#yearOfCentury
DateTimegetNanosOfSecond()DateTime#nanosOfSecond
DateTimegetNanosOfDay()DateTime#nanosOfDay
DateTimegetZoneOffsetMillis()DateTime#zoneOffsetMillis
DateTimegetZoneOffsetMinutes()DateTime#zoneOffsetMinutes
DateTimeisEqualNow()DateTime#isEqual
DateTimetoISO8601()DateTime#toString
DateTimetoISOString()DateTime#toString
DateTimetoJSONString()DateTime#toString
DateTimetoString()DateTime#toString
DateTimetoString(string)DateTime#format
DateTimetoUTCString()DateTime#toString
DateTimewithZoneOffsetMinutes(int)DateTime#withZoneOffset
DateTimewithZoneOffsetMinutesRetainFields(int)DateTime#withZoneOffsetRetainFields
DateTimeplusDateTime#plusMillis
DateTimeminusDateTime#minusMillis
DateTimegetZone()DateTime#zone
DateTimeclone()DateTime#clone
DimensiongetConversionFactorDimension#conversionFactor
DimensioncreateDimension#fromValue
DimensionequalsDimension#equals_
DimensiongetUnitDimension#safeUnit
DimensionasNumberDimension#value
DimensioncompareTo(Dimension)Dimension#compare
DimensionasDoubleDimension#value
FetchSpecwithIdFetchSpec#withIdFilter
FetchSpecwithIdsFetchSpec#withIdsFilter
FetchSpecwithIdRangeFetchSpec#withIdRangeFilter
FieldTypeisAllowEmptyString()FieldType#valueType().allowsEmpty()
FieldTypeisTimeseriesFieldFieldType#isTimeseries
FunctionTypeargumentsFunctionType#params
HashhashIntHash#hashInt32
HashhashLongHash#hashInt
HashnameHash#algorithm
HashsumHash#hashBinary
HashsumHexHash#hashHex
HashsumStringHash#hashString
HashsumContentHash#hashContent
IntervalfromString(string)Interval#standardize
MethodTypeargumentCountMethodType#paramCount
ObjwithPostDefaultsObj#withDefaults
ObjfieldsObj#fieldValues
ObjfieldAtPathObj#fieldValueAtPath
ObjfieldsAtPathObj#fieldValuesAtPath
PrimitiveTypevaluesPrimitiveType#all
ReferenceTypeisVarRefReferenceType#isVarReference
ReferenceTypeunboxTypeReferenceType#unboxValueType
ReferenceTypetypeNameReferenceType#name
StrisVoidStr#isEmpty
StrisNotVoidStr#isNotEmpty
TestRunnerasGroupTestRunner#asRole
TypeisCassandraTypeType#meta().isDatastoreKv
TypebindDynamicType#meta().bindVar
TypemyReferenceTypeType#meta().referenceType
TypegenericVarBindingType#meta().varBinding
TypeisBoxedPrimitiveType#meta().isBoxedPrimitiveType
TypeisAnonymousType#meta().isAnonymous
TypemixinType#meta().mixin
TypebaseTypeType#meta().baseType
TypetypeNameType#name
TypeputFieldTypeType#meta().withFieldType
TyperemixAliasesType#meta().remixAliases
TypeallRemixPackagesType#meta().allRemixPackages
TypeprototypeNameType#meta().prototypeName
TypequalifiedNameType#meta().qname
TypehasExtensionsType#meta().hasAnnotations
TypehasAnnotationsType#meta().hasAnnotations
TypeannotationValueType#meta().annotationValue
TypehasAnnotationType#meta().hasAnnotation
TypeisAnnotationType#meta().isAnnotation
TypevariablesType#meta().vars
TypemixinsType#meta().declaredMixins
TypeisExtendableType#meta().isExtendable
TypeisExtensionType#meta().isExtension
TyperootTypeType#meta().rootType
TypedeepMixinsType#meta().mixins
TypefieldTypeType#meta().fieldType
TypelookupSerFieldType#meta().serFieldType
TypefieldTypesType#meta().fieldTypes
TypedataFieldTypesType#meta().dataFieldTypes
TypeputFieldTypesType#meta().withFieldTypes
TypehasFieldInitializersType#meta().hasFieldDefaults
TypehasFieldCollectionsType#meta().hasChildCollection
TypevalueTypeType#meta().valueType
TypetraverseTypeType#meta().traverseType
TypeunboxTypeType#meta().unboxPrimitiveType
TypeisAType#meta().isA
TypeisParametricType#meta().isGeneric
TypebindingsType#meta().varBindings
TypehasDynamicBindingsType#meta().hasVarBindings
TypedynamicPrototypeType#meta().prototype
TypeisPersistableType#meta().isPersistable
TypeisEntityType#meta().isEntity
TypeisNotPersistableType#meta().isNotPersistable
TypeisAbstractType#meta().isAbstract
TypeisPrivateType#meta().isPrivate
TypehasSourceCodeType#meta().hasSourceCode
TypesourceCodeType#meta().sourceCode
TypefieldTypeDeclaredOnType#meta().fieldTypeFirstDeclaredOn
TypefieldTypeImplementedOnType#meta().fieldTypeDeclaredOn
TypebindVariablesType#meta().bindVars
TypemergeSourceCodeType#meta().sourceCode
TypeisIncludedType#meta().isNotPersistable
TypeextensionsType#meta().annotations
ValueTypeisCoercibleValueType#isAssignableFrom
ValueTypeasArryTypeValueType#asArrayType
ValueTypeisAnyStringValueType#isString
ValueTypeisAnyDateValueType#isDateTime
ValueTypeisAnyFunctionValueType#isFunction
ValueTypecoerceValueValueType#convertValue
ValueTypevalueFromStringValueType#fromString
ValueTypeisCoercibleValueValueType#isA
ValueTypeisAnyNumberValueType#isNumber
ValueTypeisConvertibleValueType#isAssignableFrom
ValueTypeserializeValueValueType#valueToString
ValueTypeisAnyCollectionValueType#isCollection
ValueTypeisRefArryValueType#isRefArray
ValueTypeisRefMappValueType#isRefMap
ValueTypeisIntValueType#isInt32
ValueTypeisLongIntValueType#isInt
ValueTypeisAnyBinaryValueType#isBinary
Was this page helpful?