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

vectorpipe.model.Actions.scala Maven / Gradle / Ivy

The newest version!
package vectorpipe.model

object Actions {
  type Action = Byte

  val Create: Action = 1.byteValue
  val Modify: Action = 2.byteValue
  val Delete: Action = 3.byteValue

  def fromString(str: String): Action =
    str.toLowerCase match {
      case "create" => Actions.Create
      case "delete" => Actions.Delete
      case "modify" => Actions.Modify
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy