This commit is contained in:
Looly 2022-03-28 03:53:50 +08:00
parent 2dde8d18d0
commit 8c349c6082
4 changed files with 12 additions and 36 deletions

View File

@ -103,8 +103,9 @@ public class Opt<T> {
/**
* 返回一个包裹里{@code List}集合可能为空的{@code Opt}额外判断了集合内元素为空的情况
*
* @param value 传入需要包裹的元素
* @param <T> 包裹里元素的类型
* @param <R> 集合值类型
* @param value 传入需要包裹的元素
* @return 一个包裹里元素可能为空的 {@code Opt}
* @since 5.7.17
*/
@ -113,7 +114,6 @@ public class Opt<T> {
}
/**
*
* @param supplier 操作
* @param <T> 类型
* @return 操作执行后的值

View File

@ -23,19 +23,6 @@ public class LambdaUtil {
/**
* 通过对象的方法或类的静态方法引用获取lambda实现类
* 传入lambda无参数但含有返回值的情况能够匹配到此方法
* <pre>{@code
* @Data
* @EqualsAndHashCode(callSuper = true)
* static class MyTeacher extends Entity&lt;MyTeacher&gt; {
*
* public String age;
*
* public static String takeAge() {
* return new MyTeacher().getAge();
* }
*
* }
* }</pre>
* <ul>
* <li>引用特定对象的实例方法<pre>{@code
* MyTeacher myTeacher = new MyTeacher();
@ -124,19 +111,6 @@ public class LambdaUtil {
/**
* 通过对象的方法或类的静态方法引用然后根据{@link SerializedLambda#getInstantiatedMethodType()}获取lambda实现类<br>
* 传入lambda有参数且含有返回值的情况能够匹配到此方法
* <pre>{@code
* @Data
* @EqualsAndHashCode(callSuper = true)
* static class MyTeacher extends Entity&lt;MyTeacher&gt; {
*
* public String age;
*
* public static String takeAgeBy(MyTeacher myTeacher) {
* return myTeacher.getAge();
* }
*
* }
* }</pre>
* <ul>
* <li>引用特定类型的任意对象的实例方法<pre>{@code
* Class<MyTeacher> functionClass = LambdaUtil.getRealClass(MyTeacher::getAge);

View File

@ -680,7 +680,7 @@ public class MapUtil {
* @param <K> {@code key}的类型
* @param <V> {@code value}的类型
* @param <R> 新的修改后的{@code value}的类型
* @return 值可以为不同类型的 {@link Map
* @return 值可以为不同类型的 {@link Map}
* @since 5.8.0
*/
public static <K, V, R> Map<K, R> map(Map<K, V> map, BiFunction<K, V, R> biFunction) {

View File

@ -136,8 +136,8 @@ public class AntPathMatcher {
* are coming in, with little chance for encountering a recurring pattern.
*
* @param cachePatterns 是否缓存表达式
* @see #getStringMatcher(String)
* @return this
* @see #getStringMatcher(String)
*/
public AntPathMatcher setCachePatterns(boolean cachePatterns) {
this.cachePatterns = cachePatterns;
@ -708,6 +708,8 @@ public class AntPathMatcher {
/**
* Main entry point.
*
* @param str Str
* @param uriTemplateVariables uri template vars
* @return {@code true} if the string matches against the pattern, or {@code false} otherwise.
*/
public boolean matchStrings(String str, Map<String, String> uriTemplateVariables) {