GuidValue

open class GuidValue : DataValue(source)

Encapsulates an OData GUID value.

Functions

Link copied to clipboard
@Nullable
open fun castOptional(@Nullable @Nullable value: @Nullable DataValue): @Nullable GuidValue
For internal use only.
Link copied to clipboard
@NotNull
open fun castRequired(@Nullable @Nullable value: @Nullable DataValue): @NotNull GuidValue
For internal use only.
Link copied to clipboard
open fun compare(@NonNull @NotNull x: @NotNull GuidValue, @NonNull @NotNull y: @NotNull GuidValue): Int
Compare two wrapped values for ordering.
Link copied to clipboard
@NotNull
open fun copyMutable(): @NotNull DataValue
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.
Link copied to clipboard
open fun equal(@Nullable @Nullable x: @Nullable GuidValue, @Nullable @Nullable y: @Nullable GuidValue): Boolean
Compare two wrapped values for equality.
Link copied to clipboard
@NotNull
open fun getDataType(): @NotNull DataType
Return the type BasicType.GUID_VALUE.
Link copied to clipboard
@NotNull
fun getValue(): @NotNull GUID
Return the wrapped value.
Link copied to clipboard
@NotNull
open fun literal(@NonNull @NotNull text: @NotNull String): @NotNull GuidValue
Parse a string (32/36-character GUID format) to a GuidValue.
Link copied to clipboard
@NotNull
open fun of(@NonNull @NotNull value: @NotNull GUID): @NotNull GuidValue
Wrap a com.sap.cloud.mobile.odata.core.GUID value as a GuidValue.
Link copied to clipboard
@Nullable
open fun ofNullable(@Nullable @Nullable value: @Nullable GUID): @Nullable GuidValue
Wrap a com.sap.cloud.mobile.odata.core.GUID value as a GuidValue.
Link copied to clipboard
@Nullable
open fun parse(@NonNull @NotNull text: @NotNull String): @Nullable GuidValue
Parse a string (32/36-character GUID format) to a GuidValue.
Link copied to clipboard
@NotNull
open fun random(): @NotNull GuidValue
Return a new random (Version 4) GuidValue.
Link copied to clipboard
@NotNull
open fun toBinary(): Array<Byte>
Convert the wrapped value to binary format (16 bytes).
Link copied to clipboard
@NotNull
open fun toString(): @NotNull String
Convert this data value to a string.
Link copied to clipboard
@NotNull
open fun toString32(): @NotNull String
Convert the wrapped value to the 32-character GUID format, e.g.
Link copied to clipboard
@NotNull
open fun toString36(): @NotNull String
Convert the wrapped value to the 36-character GUID format, e.g.