3030import java .util .function .Function ;
3131
3232/**
33- * Useful tool to parse a text-message for EntityResolvable
33+ * Useful tool to parse a text-message for EntityResolvable.
3434 */
3535@ SuppressWarnings ({"unused" , "WeakerAccess" })
3636public class EntityResolver {
3737
3838 /**
39- * Resolves an {@link User} entity by a mention, it's id or it's name (case-sensitive)
39+ * Resolves an {@link User} entity by a mention, it's id or it's name (case-sensitive).
4040 *
4141 * @param input e.g an user input that should get parsed for mentions
4242 * @param jda the {@link JDA} instance of you bot
@@ -51,7 +51,7 @@ public static User resolveUser(
5151 }
5252
5353 /**
54- * Resolves an {@link TextChannel} entity by a mention, it's id or it's name
54+ * Resolves an {@link TextChannel} entity by a mention, it's id or it's name.
5555 *
5656 * @param input e.g an user input that should get parsed for mentions
5757 * @param jda the {@link JDA} instance of you bot
@@ -69,7 +69,7 @@ public static User resolveUser(
6969
7070
7171 /**
72- * Resolves an {@link Role} entity by a mention, it's id or it's name (case-sensitive)
72+ * Resolves an {@link Role} entity by a mention, it's id or it's name (case-sensitive).
7373 *
7474 * @param input e.g an user input that should get parsed for mentions
7575 * @param guild the {@link Guild} the member is on
@@ -84,7 +84,7 @@ public static Member resolveMember(
8484 }
8585
8686 /**
87- * Resolves an {@link TextChannel} entity by a mention, it's id or it's name
87+ * Resolves an {@link TextChannel} entity by a mention, it's id or it's name.
8888 *
8989 * @param input e.g an user input that should get parsed for mentions
9090 * @param guild the {@link Guild} the member is on
@@ -101,7 +101,7 @@ public static Member resolveMember(
101101 }
102102
103103 /**
104- * Resolves an {@link TextChannel} entity by a mention, it's id or it's name (case-sensitive)
104+ * Resolves an {@link TextChannel} entity by a mention, it's id or it's name (case-sensitive).
105105 *
106106 * @param input e.g an user input that should get parsed for mentions
107107 * @param guild the {@link Guild} the channel is on
@@ -116,7 +116,7 @@ public static TextChannel resolveTextChannel(
116116 }
117117
118118 /**
119- * Resolves an {@link TextChannel} entity by a mention, it's id or it's name
119+ * Resolves an {@link TextChannel} entity by a mention, it's id or it's name.
120120 *
121121 * @param input e.g an user input that should get parsed for mentions
122122 * @param guild the {@link Guild} the channel is on
@@ -133,7 +133,7 @@ public static TextChannel resolveTextChannel(
133133 }
134134
135135 /**
136- * Resolves an {@link Role} entity by a mention, it's id or it's name (case-sensitive)
136+ * Resolves an {@link Role} entity by a mention, it's id or it's name (case-sensitive).
137137 *
138138 * @param input e.g an user input that should get parsed for mentions
139139 * @param guild the {@link Guild} the role is on
@@ -148,7 +148,7 @@ public static Role resolveRole(
148148 }
149149
150150 /**
151- * Resolves an {@link Role} entity by a mention, it's id or it's name
151+ * Resolves an {@link Role} entity by a mention, it's id or it's name.
152152 *
153153 * @param input e.g an user input that should get parsed for mentions
154154 * @param guild the {@link Guild} the role is on
@@ -165,7 +165,7 @@ public static Role resolveRole(
165165 }
166166
167167 /**
168- * Resolves an {@link IMentionable mentionable} entity by a mention, it's id or it's name (case-sensitive)
168+ * Resolves an {@link IMentionable mentionable} entity by a mention, it's id or it's name (case-sensitive).
169169 *
170170 * @param input e.g an user input that should get parsed for mentions
171171 * @param type the {@link net.dv8tion.jda.api.entities.Message.MentionType} of the expected entity
@@ -179,13 +179,13 @@ public static <T extends IMentionable> T resolveEntity(
179179 @ NotNull String input ,
180180 @ NotNull Message .MentionType type ,
181181 @ NotNull Function <@ NotNull String , @ Nullable T > idResolver ,
182- @ NotNull BiFunction <@ NotNull String , Boolean , @ Nullable Collection <T >> nameResolver
182+ @ NotNull BiFunction <@ NotNull String , Boolean , @ NotNull Collection <T >> nameResolver
183183 ) {
184184 return resolveEntity (input , type , idResolver , nameResolver , false );
185185 }
186186
187187 /**
188- * Resolves an {@link IMentionable mentionable} entity by a mention, it's id or it's name
188+ * Resolves an {@link IMentionable mentionable} entity by a mention, it's id or it's name.
189189 *
190190 * @param input e.g an user input that should get parsed for mentions
191191 * @param type the {@link net.dv8tion.jda.api.entities.Message.MentionType} of the expected entity
@@ -200,7 +200,7 @@ public static <T extends IMentionable> T resolveEntity(
200200 @ NotNull String input ,
201201 @ NotNull Message .MentionType type ,
202202 @ NotNull Function <@ NotNull String , @ Nullable T > idResolver ,
203- @ NotNull BiFunction <@ NotNull String , Boolean , @ Nullable Collection <T >> nameResolver ,
203+ @ NotNull BiFunction <@ NotNull String , Boolean , @ NotNull Collection <T >> nameResolver ,
204204 boolean ignoreCase
205205 ) {
206206 if (input .isBlank () || input .isEmpty ()) {
0 commit comments