1515import io .vavr .Lazy ;
1616import io .vavr .collection .List ;
1717import io .vavr .collection .Map ;
18+ import io .vavr .collection .Multimap ;
1819import io .vavr .collection .Seq ;
1920import io .vavr .control .Either ;
2021import io .vavr .control .Option ;
@@ -35,7 +36,7 @@ private VavrAssertions() {
3536 }
3637
3738 /**
38- * Create assertion for {@link io.vavr.control.Either}.
39+ * Creates assertion for {@link io.vavr.control.Either}.
3940 *
4041 * @param <LEFT> the type of a value contained on left by <code>actual {@link Either}</code>.
4142 * @param <RIGHT> the type of a value contained on right by <code>actual {@link Either}</code>.
@@ -48,7 +49,7 @@ public static <LEFT, RIGHT> EitherAssert<LEFT, RIGHT> assertThat(Either<LEFT, RI
4849 }
4950
5051 /**
51- * Create assertion for {@link Lazy}.
52+ * Creates assertion for {@link Lazy}.
5253 *
5354 * @param <VALUE> the type of a value contained by <code>actual {@link Lazy}</code>.
5455 * @param actual the actual value.
@@ -60,7 +61,7 @@ public static <VALUE> LazyAssert<VALUE> assertThat(Lazy<VALUE> actual) {
6061 }
6162
6263 /**
63- * Create assertion for {@link io.vavr.control.Option}.
64+ * Creates assertion for {@link io.vavr.control.Option}.
6465 *
6566 * @param <VALUE> the type of a value contained by <code>actual {@link Option}</code>.
6667 * @param actual the actual value.
@@ -72,7 +73,7 @@ public static <VALUE> OptionAssert<VALUE> assertThat(Option<VALUE> actual) {
7273 }
7374
7475 /**
75- * Create assertion for {@link io.vavr.control.Try}.
76+ * Creates assertion for {@link io.vavr.control.Try}.
7677 *
7778 * @param <VALUE> the type of a value contained by <code>actual {@link Try}</code>.
7879 * @param actual the actual value.
@@ -84,7 +85,7 @@ public static <VALUE> TryAssert<VALUE> assertThat(Try<VALUE> actual) {
8485 }
8586
8687 /**
87- * Create assertion for {@link io.vavr.collection.List}.
88+ * Creates assertion for {@link io.vavr.collection.List}.
8889 *
8990 * @param <VALUE> the type of elements contained by <code>actual {@link List}</code>.
9091 * @param actual the actual value.
@@ -96,7 +97,7 @@ public static <VALUE> SeqAssert<VALUE> assertThat(Seq<VALUE> actual) {
9697 }
9798
9899 /**
99- * Create assertion for {@link io.vavr.control.Validation}.
100+ * Creates assertion for {@link io.vavr.control.Validation}.
100101 *
101102 * @param <INVALID> type of the value in the case of the invalid {@link Validation}.
102103 * @param <VALID> type of the value in the case of the valid {@link Validation}.
@@ -109,7 +110,7 @@ public static <INVALID, VALID> ValidationAssert<INVALID, VALID> assertThat(Valid
109110 }
110111
111112 /**
112- * Create assertion for {@link io.vavr.collection.Map}.
113+ * Creates assertion for {@link io.vavr.collection.Map}.
113114 *
114115 * @param <KEY> key type of the {@link Map}.
115116 * @param <VALUE> value type of the {@link Map}.
@@ -121,4 +122,17 @@ public static <KEY, VALUE> MapAssert<KEY, VALUE> assertThat(Map<KEY, VALUE> actu
121122 return new MapAssert <>(actual );
122123 }
123124
125+ /**
126+ * Creates assertion for {@link io.vavr.collection.Multimap}.
127+ *
128+ * @param <KEY> key type of the {@link Multimap}.
129+ * @param <VALUE> value type of the {@link Multimap}.
130+ * @param actual the actual value.
131+ * @return the created assertion object.
132+ */
133+ @ CheckReturnValue
134+ public static <KEY , VALUE > MultimapAssert <KEY , VALUE > assertThat (Multimap <KEY , VALUE > actual ) {
135+ return new MultimapAssert <>(actual );
136+ }
137+
124138}
0 commit comments