Use your own classes to provide semantics for the reader of your API or code. No Primitives generates them for you.
src/main/semantic-wrapper/any-nameand tell No Primitives about your classes and their base types.
com.github.stefanbirkner.noprimitives.example.OrderNumber : int com.github.stefanbirkner.noprimitives.example.Name : String
<plugins>
<plugin>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>no-primitives-plugin</artifactId>
<version>1.0.0</version>
</plugin>
</plugins>
mvn generate-sources
OrderNumber orderNumber = new OrderNumber(123);or the fluent interface
Name name = name("Stefan");
Name name = name(null); //name == null
Stefan Birkner (mail@stefan-birkner.de)