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

com.sageserpent.americium.java.TrialsApiWart.scala Maven / Gradle / Ivy

package com.sageserpent.americium.java
import com.sageserpent.americium.java.TrialsApi as JavaTrialsApi
import com.sageserpent.americium.{
  TrialsImplementation,
  TrialsApiImplementation as ScalaTrialsApiImplementation
}

trait TrialsApiWart extends JavaTrialsApi {
  def scalaApi: ScalaTrialsApiImplementation

  def choose[Case](
      firstChoice: Case,
      secondChoice: Case,
      otherChoices: Case*
  ): TrialsImplementation[Case] =
    scalaApi.choose(firstChoice +: secondChoice +: otherChoices)

  def choose[Case](
      choices: Array[Case with AnyRef]
  ): TrialsImplementation[Case] = scalaApi.choose(choices.toSeq)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy