From 19df75a773986b27e8630186770450e16c333aaa Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 16 Mar 2021 10:34:07 +0000 Subject: [PATCH] readme: Add Skip the Mon import (#185) --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6c590b9..fabcff6 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,17 @@ String v = pn.value(); 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