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

com.malliina.push.NamedCompanion.scala Maven / Gradle / Ivy

There is a newer version: 1.24.4
Show newest version
package com.malliina.push

import com.malliina.push.wns.Named

abstract class NamedCompanion[T <: Named] extends ValidatingCompanion[String, T] {
  def all: Seq[T]
  override def write(t: T): String = t.name
  override def build(input: String): Option[T] = all.find(_.name == input)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy