readme: Add Skip the Mon import (#185)

This commit is contained in:
Paul Campbell 2021-03-16 10:34:07 +00:00 committed by GitHub
parent a7ad6a3497
commit 19df75a773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,17 @@ String v = pn.value();
Returns the value in the `Wrapper`. Returns the value in the `Wrapper`.
### Skip the Mon import
If the only thing you want is `Wrapper`, you can skip importing the `mon`
dependency by declaring your tyoes like so:
``` java
interface PhoneNumber {String value();}
```
This is functionally identical to the example above using `Wrapper`.
--- ---
## TypeAlias ## TypeAlias