@FunctionalInterface public interface TypeSupplier
| 限定符和类型 | 方法和说明 |
|---|---|
default TypeSupplier |
afterOther(TypeSupplier other)
将当前 TypeSupplier 串联到 other 的后面,如果当前TypeSupplier的 test 方法返回 false 就会执行后面那个。
|
default TypeSupplier |
beforeOther(TypeSupplier other)
将当前 TypeSupplier 串联到 other 的前面,如果 other 的 test 方法返回 false 就会执行当前这个。
|
<T> T |
get(Class<? extends T> targetType) |
default <T> boolean |
test(Class<? extends T> targetType)
测试 TypeSupplier 是否支持这个类型,默认全部支持。
|
<T> T get(Class<? extends T> targetType)
default <T> boolean test(Class<? extends T> targetType)
default TypeSupplier beforeOther(TypeSupplier other)
default TypeSupplier afterOther(TypeSupplier other)
Copyright © 2021–2022. All rights reserved.