All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.harmony.kotlin.data.datasource.flow.VoidFlowDataSources.kt Maven / Gradle / Ivy

package com.harmony.kotlin.data.datasource.flow

import com.harmony.kotlin.data.query.Query
import kotlinx.coroutines.flow.Flow

class VoidFlowDataSource : FlowGetDataSource, FlowPutDataSource, FlowDeleteDataSource {
  override fun get(query: Query): Flow = throw UnsupportedOperationException()

  @Deprecated("Use get instead")
  override fun getAll(query: Query): Flow> = throw UnsupportedOperationException()

  override fun put(query: Query, value: V?): Flow = throw UnsupportedOperationException()

  @Deprecated("Use put instead")
  override fun putAll(query: Query, value: List?): Flow> = throw UnsupportedOperationException()

  override fun delete(query: Query) = throw UnsupportedOperationException()
}

class VoidFlowGetDataSource : FlowGetDataSource {
  override fun get(query: Query): Flow = throw UnsupportedOperationException()

  @Deprecated("Use get instead")
  override fun getAll(query: Query): Flow> = throw UnsupportedOperationException()
}

class VoidFlowPutDataSource : FlowPutDataSource {
  override fun put(query: Query, value: V?): Flow = throw UnsupportedOperationException()

  @Deprecated("Use put instead")
  override fun putAll(query: Query, value: List?): Flow> = throw UnsupportedOperationException()
}

class VoidFlowDeleteDataSource : FlowDeleteDataSource {
  override fun delete(query: Query) = throw UnsupportedOperationException()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy