share

@JvmStatic
fun share(list: ListBase): EntitySet.IndexList

Return a new {@link com.sap.cloud.mobile.kotlin.odata.EntitySet.IndexList} that shares the {@link com.sap.cloud.mobile.kotlin.odata.ListBase#untypedList ListBase.untypedList} as the list parameter. To ensure type safety, items in list that do not have the item type {@link com.sap.cloud.mobile.kotlin.odata.EntitySet.Index} will be removed.

Return

A new list of item type {@link com.sap.cloud.mobile.kotlin.odata.EntitySet.Index}, sharing the same items as list.

Parameters

list

List whose items will be shared by the resulting list.