withSegments

Return a new data path with the specified type and segments.

Return

A new data path with the specified type and segments.

Parameters

type

Value for {@link com.sap.cloud.mobile.kotlin.odata.DataPath#pathType DataPath.pathType}.

segments

Value for {@link com.sap.cloud.mobile.kotlin.odata.DataPath#pathSegments DataPath.pathSegments}.