setUnsafeValue

fun setUnsafeValue(property: Property, value: DataValue?)

Set the value of a specified property (like {@link com.sap.cloud.mobile.kotlin.odata.StructureBase#setDataValue(com.sap.cloud.mobile.kotlin.odata.Property, com.sap.cloud.mobile.kotlin.odata.DataValue?) StructureBase.setDataValue}), but bypassing the usual validation checks. This may be useful in performance critical code, but note that it will be assumed that:

  • The property belongs to the structure's type.
  • The value has the correct type for the property.

    Parameters

    property

    The specified property.

    value

    (nullable) The property value (or null), using the appropriate subclass of {@link com.sap.cloud.mobile.kotlin.odata.DataValue}.