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(Supplier<BigDecimal> d,
CharSequence... ts)
The first non-null decimal that can be converted
|
static BigDecimal |
decimalSafe(Supplier<BigDecimal> d,
Iterable<? extends CharSequence> ts) |
static BigDecimal |
decimalSure(BigDecimal d,
CharSequence... ts) |
static BigDecimal |
decimalSure(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 <T> T |
findSafe(Supplier<T> d,
Predicate<T> p,
Iterable<? extends T> ts) |
static <T> T |
findSafe(Supplier<T> d,
Predicate<T> p,
T... ts) |
static <T> T |
findSure(T d,
Predicate<T> p,
Iterable<? extends T> ts) |
static <T> T |
findSure(T d,
Predicate<T> p,
T... ts) |
static @Nullable Integer |
int32(CharSequence... ts) |
static @Nullable Integer |
int32(Iterable<? extends CharSequence> ts) |
static Integer |
int32Safe(Supplier<Integer> d,
CharSequence... ts) |
static Integer |
int32Safe(Supplier<Integer> d,
Iterable<? extends CharSequence> ts) |
static Integer |
int32Sure(Integer d,
CharSequence... ts)
The first non-null integer that can be converted
|
static Integer |
int32Sure(Integer d,
Iterable<? extends CharSequence> ts) |
static @Nullable Long |
int64(CharSequence... ts) |
static @Nullable Long |
int64(Iterable<? extends CharSequence> ts) |
static Long |
int64Safe(Supplier<Long> d,
CharSequence... ts) |
static Long |
int64Safe(Supplier<Long> d,
Iterable<? extends CharSequence> ts) |
static Long |
int64Sure(Long d,
CharSequence... ts)
The first non-null long that can be converted
|
static Long |
int64Sure(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(Supplier<R> d,
Function<T,R> f,
Iterable<? extends T> ts) |
static <T,R> R |
makeSafe(Supplier<R> d,
Function<T,R> f,
T... ts)
Convert the first non-null object that can be applied to `f`.
|
static <T,R> R |
makeSure(R d,
Function<T,R> f,
Iterable<? extends T> ts) |
static <T,R> R |
makeSure(R d,
Function<T,R> f,
T... ts) |
static @Nullable String |
notBlank(CharSequence... ts) |
static @Nullable String |
notBlank(Iterable<? extends CharSequence> ts) |
static String |
notBlankSafe(Supplier<String> d,
CharSequence... ts) |
static String |
notBlankSafe(Supplier<String> d,
Iterable<? extends CharSequence> ts) |
static String |
notBlankSure(String d,
CharSequence... ts) |
static String |
notBlankSure(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(Supplier<T> d,
Iterable<? extends T> ts) |
static <T extends CharSequence> |
notEmptySafe(Supplier<T> d,
T... ts) |
static <T extends CharSequence> |
notEmptySure(T d,
Iterable<? extends T> ts) |
static <T extends CharSequence> |
notEmptySure(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 |
notNullSure(T d,
Iterable<? extends T> ts) |
static <T> T |
notNullSure(T d,
T... ts) |
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 @Contract(value="!null,_,_ ->!null") static <T> T findSure(T d, Predicate<T> p, T... ts)
@Contract(value="!null,_,_ ->!null")
static <T> T findSure(T d,
Predicate<T> p,
Iterable<? extends T> ts)
@SafeVarargs @Contract(value="!null,_,_ ->!null") static <T> T findSafe(Supplier<T> d, Predicate<T> p, T... ts)
@Contract(value="!null,_,_ ->!null") static <T> T findSafe(Supplier<T> d, Predicate<T> p, Iterable<? extends T> ts)
@SafeVarargs @Nullable static <T,R> R make(Function<T,R> f, T... ts)
@SafeVarargs @Contract(value="!null,_,_ ->!null") static <T,R> R makeSure(R d, Function<T,R> f, T... ts)
@Contract(value="!null,_,_ ->!null")
static <T,R> R makeSure(R d,
Function<T,R> f,
Iterable<? extends T> ts)
@SafeVarargs @Contract(value="!null,_,_ ->!null") static <T,R> R makeSafe(Supplier<R> d, Function<T,R> f, T... ts)
@Contract(value="!null,_,_ ->!null") static <T,R> R makeSafe(Supplier<R> d, Function<T,R> f, Iterable<? extends T> ts)
@Nullable static @Nullable BigDecimal decimal(Iterable<? extends CharSequence> ts)
@Nullable static @Nullable BigDecimal decimal(CharSequence... ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSure(BigDecimal d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSure(BigDecimal d, Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSafe(Supplier<BigDecimal> d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static BigDecimal decimalSafe(Supplier<BigDecimal> d, Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Long int64(Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Long int64(CharSequence... ts)
@Contract(value="!null,_ ->!null") static Long int64Sure(Long d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Long int64Sure(Long d, Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static Long int64Safe(Supplier<Long> d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Long int64Safe(Supplier<Long> d, Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Integer int32(Iterable<? extends CharSequence> ts)
@Nullable static @Nullable Integer int32(CharSequence... ts)
@Contract(value="!null,_ ->!null") static Integer int32Sure(Integer d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Integer int32Sure(Integer d, Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static Integer int32Safe(Supplier<Integer> d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static Integer int32Safe(Supplier<Integer> d, Iterable<? extends CharSequence> ts)
@Nullable static <T> T notNull(Iterable<? extends T> ts)
@SafeVarargs @Nullable static <T> T notNull(T... ts)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T> T notNullSure(T d, T... ts)
@Contract(value="!null,_ ->!null")
static <T> T notNullSure(T d,
Iterable<? extends T> ts)
@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)
@Nullable static <T extends CharSequence> T notEmpty(Iterable<? extends T> ts)
@SafeVarargs @Nullable static <T extends CharSequence> T notEmpty(T... ts)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T extends CharSequence> T notEmptySure(T d, T... ts)
@Contract(value="!null,_ ->!null") static <T extends CharSequence> T notEmptySure(T d, Iterable<? extends T> ts)
@Contract(value="!null,_ ->!null") @SafeVarargs static <T extends CharSequence> T notEmptySafe(Supplier<T> d, T... ts)
@Contract(value="!null,_ ->!null") static <T extends CharSequence> T notEmptySafe(Supplier<T> d, Iterable<? extends T> ts)
@Nullable static @Nullable String notBlank(Iterable<? extends CharSequence> ts)
@Nullable static @Nullable String notBlank(CharSequence... ts)
@Contract(value="!null,_ ->!null") static String notBlankSure(String d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static String notBlankSure(String d, Iterable<? extends CharSequence> ts)
@Contract(value="!null,_ ->!null") static String notBlankSafe(Supplier<String> d, CharSequence... ts)
@Contract(value="!null,_ ->!null") static String notBlankSafe(Supplier<String> d, Iterable<? extends CharSequence> ts)
Copyright © 2024. All rights reserved.