value-entry


License

License

MIT
Categories

Categories

Ant Build Tools
GroupId

GroupId

com.github.allantl
ArtifactId

ArtifactId

value-entry_2.11
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

value-entry
value-entry
Project URL

Project URL

https://github.com/allantl/value-entry
Project Organization

Project Organization

com.github.allantl
Source Code Management

Source Code Management

https://github.com/allantl/value-entry

Download value-entry_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.allantl/value-entry_2.11/ -->
<dependency>
    <groupId>com.github.allantl</groupId>
    <artifactId>value-entry_2.11</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.allantl/value-entry_2.11/
implementation 'com.github.allantl:value-entry_2.11:0.2.1'
// https://jarcasting.com/artifacts/com.github.allantl/value-entry_2.11/
implementation ("com.github.allantl:value-entry_2.11:0.2.1")
'com.github.allantl:value-entry_2.11:jar:0.2.1'
<dependency org="com.github.allantl" name="value-entry_2.11" rev="0.2.1">
  <artifact name="value-entry_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.allantl', module='value-entry_2.11', version='0.2.1')
)
libraryDependencies += "com.github.allantl" % "value-entry_2.11" % "0.2.1"
[com.github.allantl/value-entry_2.11 "0.2.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.0.7

Project Modules

There are no modules declared in this project.

Value Entry

Build Status

Value entry for Scala/ScalaJS

libraryDependencies ++= Seq(
    "com.github.allantl" %%% "value-entry" % "0.2.1"
)

Quick Start

import com.allantl.value.entry.ValueEntry

sealed trait Fruit extends ValueEntry
case object Apple extends Fruit

Apple.value // Apple: String

Uncapitalized

import com.allantl.value.entry.ValueEntry

sealed trait Fruit extends ValueEntry.Uncapitalized
case object GreenApple extends Fruit

GreenApple.value // greenApple: String

SnakeCase

import com.allantl.value.entry.ValueEntry

sealed trait Fruit extends ValueEntry.SnakeCase with ValueEntry.LowerCase
case object RedApple extends Fruit

RedApple.value // red_apple: String

Versions

Version
0.2.1
0.2.0
0.1.0