DataValue

abstract class DataValue

Abstract base class for wrapper classes that wrap basic data values as objects, as well as calendar values, geography values, geometry values, {@link com.sap.cloud.mobile.kotlin.odata.ComplexValue}, {@link com.sap.cloud.mobile.kotlin.odata.EntityValue} and {@link com.sap.cloud.mobile.kotlin.odata.ListBase}.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.StringValue}, {@link com.sap.cloud.mobile.kotlin.odata.BinaryValue}, {@link com.sap.cloud.mobile.kotlin.odata.BooleanValue}, {@link com.sap.cloud.mobile.kotlin.odata.CharValue}, {@link com.sap.cloud.mobile.kotlin.odata.ByteValue}, {@link com.sap.cloud.mobile.kotlin.odata.ShortValue}, {@link com.sap.cloud.mobile.kotlin.odata.IntValue}, {@link com.sap.cloud.mobile.kotlin.odata.LongValue}, {@link com.sap.cloud.mobile.kotlin.odata.IntegerValue}, {@link com.sap.cloud.mobile.kotlin.odata.DecimalValue}, {@link com.sap.cloud.mobile.kotlin.odata.FloatValue}, {@link com.sap.cloud.mobile.kotlin.odata.DoubleValue}, {@link com.sap.cloud.mobile.kotlin.odata.UnsignedByte}, {@link com.sap.cloud.mobile.kotlin.odata.UnsignedShort}, {@link com.sap.cloud.mobile.kotlin.odata.EnumValue}, {@link com.sap.cloud.mobile.kotlin.odata.GuidValue}, {@link com.sap.cloud.mobile.kotlin.odata.LocalDate}, {@link com.sap.cloud.mobile.kotlin.odata.LocalTime}, {@link com.sap.cloud.mobile.kotlin.odata.LocalDateTime}, {@link com.sap.cloud.mobile.kotlin.odata.GlobalDateTime}, {@link com.sap.cloud.mobile.kotlin.odata.DayTimeDuration}, {@link com.sap.cloud.mobile.kotlin.odata.YearMonthDuration}, {@link com.sap.cloud.mobile.kotlin.odata.GeographyValue}, {@link com.sap.cloud.mobile.kotlin.odata.GeometryValue}.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val dataType: DataType
Link copied to clipboard
open val typeCode: Int

Functions

Link copied to clipboard

Return a clone of this value if it (together with all value subcomponents) is possibly mutable, or return this value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Return true if this object is equal to value.

Link copied to clipboard
open override fun hashCode(): Int

Hash this data value to a number.

Link copied to clipboard
abstract override fun toString(): String

Convert this data value to a string. If the {@link com.sap.cloud.mobile.kotlin.odata.DataValue#dataType DataValue.dataType} is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).