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

clouseau.Mode.scala Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package clouseau

sealed abstract class Mode {
  def includeClass: Boolean =
    this != Mode.JustStatic
  def includeStatic: Boolean =
    this != Mode.JustClass
  def childMode: Mode =
    if (this == Mode.JustClass) this else Mode.ClassAndStatic
}

object Mode {
  case object JustClass extends Mode
  case object JustStatic extends Mode
  case object ClassAndStatic extends Mode
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy