Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.32 KB

Codacy Badge Build Status License: MIT codecov Maven Central

Value Objects lib

The value types allow for readable type-safe code.

Defines two classes:

  • a base value object
  • an id

Usage

Each Serializable class (String, Integer, etc) in your project can be replaced with a ValueObject.

For example:

String lastName

can be change into

LastName lastName

by defining the following class:

class LastName extends ValueType<String> {
  public LastName(String value) {
      super(value)
  }
}