public interface Z
| Modifier and Type | Method and Description |
|---|---|
static @Nullable BigDecimal |
decimal(BigDecimal d,
CharSequence... ts)
第一个可以转换的非null对象
|
static @Nullable BigDecimal |
decimal(CharSequence... ts) |
static <T> T |
find(Predicate<T> p,
T... ts) |
static @Nullable Integer |
int32(CharSequence... ts) |
static @Nullable Integer |
int32(Integer d,
CharSequence... ts)
第一个可以转换的非null对象
|
static @Nullable Long |
int64(CharSequence... ts) |
static @Nullable Long |
int64(Long d,
CharSequence... ts)
第一个可以转换的非null对象
|
static <T,R> R |
make(Function<T,R> f,
T... ts) |
static <T,R> R |
make(R d,
Function<T,R> f,
T... ts)
转换第一个非null的可以转的对象
|
static @Nullable String |
notBlank(CharSequence... ts) |
static <T extends CharSequence> |
notEmpty(T... ts) |
static <T> T |
notNull(T... ts) |
static <T> @NotNull List<T> |
uniq(Collection<T> ts,
Function<? super T,?>... fn)
根据制定的项目,保证顺序的唯一对象
|
@SafeVarargs @NotNull static <T> @NotNull List<T> uniq(Collection<T> ts, Function<? super T,?>... fn)
T - 元素ts - 对象fn - 唯一项@SafeVarargs @Nullable static <T> T find(Predicate<T> p, T... ts)
@SafeVarargs @Nullable static <T,R> R make(Function<T,R> f, T... ts)
@SafeVarargs @Nullable static <T,R> R make(R d, Function<T,R> f, T... ts)
T - 转换前R - 转换后d - 默认值f - 转换方法ts - 被转对象@SafeVarargs @Nullable static <T> T notNull(T... ts)
@SafeVarargs @Nullable static <T extends CharSequence> T notEmpty(T... ts)
@Nullable static @Nullable String notBlank(CharSequence... ts)
@Nullable static @Nullable BigDecimal decimal(CharSequence... ts)
@Nullable static @Nullable BigDecimal decimal(BigDecimal d, CharSequence... ts)
d - 默认值ts - 转换前@Nullable static @Nullable Long int64(CharSequence... ts)
@Nullable static @Nullable Long int64(Long d, CharSequence... ts)
d - 默认值ts - 转换前@Nullable static @Nullable Integer int32(CharSequence... ts)
@Nullable static @Nullable Integer int32(Integer d, CharSequence... ts)
d - 默认值ts - 转换前Copyright © 2020. All rights reserved.