public interface Z
| Modifier and Type | Method and Description |
|---|---|
static @Nullable BigDecimal |
decimal(CharSequence... ts) |
static @Nullable BigDecimal |
decimal(Iterable<? extends CharSequence> ts) |
static BigDecimal |
decimalSafe(BigDecimal d,
CharSequence... ts)
The first non-null decimal that can be converted
|
static BigDecimal |
decimalSafe(BigDecimal d,
Iterable<? extends CharSequence> ts) |
static <T> T |
find(Predicate<T> p,
Iterable<? extends T> ts) |
static <T> T |
find(Predicate<T> p,
T... ts) |
static @Nullable Integer |
int32(CharSequence... ts) |
static @Nullable Integer |
int32(Iterable<? extends CharSequence> ts) |
static Integer |
int32Safe(Integer d,
CharSequence... ts)
The first non-null integer that can be converted
|
static Integer |
int32Safe(Integer d,
Iterable<? extends CharSequence> ts) |
static @Nullable Long |
int64(CharSequence... ts) |
static @Nullable Long |
int64(Iterable<? extends CharSequence> ts) |
static Long |
int64Safe(Long d,
CharSequence... ts)
The first non-null long that can be converted
|
static Long |
int64Safe(Long d,
Iterable<? extends CharSequence> ts) |
static <T,R> R |
make(Function<T,R> f,
Iterable<? extends T> ts) |
static <T,R> R |
make(Function<T,R> f,
T... ts) |
static <T,R> R |
makeSafe(R d,
Function<T,R> f,
Iterable<? extends T> ts) |
static <T,R> R |
makeSafe(R d,
Function<T,R> f,
T... ts)
Convert the first non-null object that can be applied to `f`.
|
static @Nullable String |
notBlank(CharSequence... ts) |
static @Nullable String |
notBlank(Iterable<? extends CharSequence> ts) |
static String |
notBlankSafe(String d,
CharSequence... ts) |
static String |
notBlankSafe(String d,
Iterable<? extends CharSequence> ts) |
static <T extends CharSequence> |
notEmpty(Iterable<? extends T> ts) |
static <T extends CharSequence> |
notEmpty(T... ts) |
static <T extends CharSequence> |
notEmptySafe(T d,
Iterable<? extends T> ts) |
static <T extends CharSequence> |
notEmptySafe(T d,
T... ts) |
static <T> T |
notNull(Iterable<? extends T> ts) |
static <T> T |
notNull(T... ts) |
static <T> T |
notNullSafe(Supplier<T> d,
Iterable<? extends T> ts) |
static <T> T |
notNullSafe(Supplier<T> d,
T... ts) |
static <T> T |
notNullSafe(Supplier<T> d,
T t) |
static <T> T |
notNullSafe(T d,
Iterable<? extends T> ts) |
static <T> T |
notNullSafe(T d,
T... ts) |
static <T> T |
notNullSafe(T d,
T t) |
static <T> @NotNull List<T> |
uniq(Collection<? extends T> ts,
Function<? super T,?>... fn)
Extract the key in the specified way.
|
@SafeVarargs @NotNull static <T> @NotNull List<T> uniq(Collection<? extends T> ts, Function<? super T,?>... 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 @Contract(value="!null,_,_ ->!null") static <T,R> R makeSafe(R d, Function<T,R> f, T... ts)
@Contract(value="!null,_,_ ->!null")
static <T,R> R makeSafe(R d,
Function<T,R> f,
Iterable<? extends T> ts)
@Nullable static @Nullable BigDecimal decimal(CharSequence... ts)
@Nullable static @Nullable BigDecimal decimal(Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSafe(BigDecimal d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSafe(BigDecimal d, Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Long int64(CharSequence... ts)
@Nullable static @Nullable Long int64(Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static Long int64Safe(Long d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Long int64Safe(Long d, Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Integer int32(CharSequence... ts)
@Nullable static @Nullable Integer int32(Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static Integer int32Safe(Integer d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Integer int32Safe(Integer d, Iterable<? extends CharSequence> ts)
@SafeVarargs @Nullable static <T> T notNull(T... ts)
@Nullable static <T> T notNull(Iterable<? extends T> ts)
@Contract(value="!null,_ ->!null")
static <T> T notNullSafe(T d,
T t)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T> T notNullSafe(T d, T... ts)
@Contract(value="!null,_ ->!null")
static <T> T notNullSafe(T d,
Iterable<? extends T> ts)
@Contract(value="!null,_ ->!null") static <T> T notNullSafe(Supplier<T> d, T t)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T> T notNullSafe(Supplier<T> d, T... ts)
@Contract(value="!null,_ ->!null") static <T> T notNullSafe(Supplier<T> d, Iterable<? extends T> ts)
@SafeVarargs @Nullable static <T extends CharSequence> T notEmpty(T... ts)
@Nullable static <T extends CharSequence> T notEmpty(Iterable<? extends T> ts)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T extends CharSequence> T notEmptySafe(T d, T... ts)
@Contract(value="!null,_ ->!null") static <T extends CharSequence> T notEmptySafe(T d, Iterable<? extends T> ts)
@Nullable static @Nullable String notBlank(CharSequence... ts)
@Nullable static @Nullable String notBlank(Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static String notBlankSafe(String d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static String notBlankSafe(String d, Iterable<? extends CharSequence> ts)
Copyright © 2023. All rights reserved.