Package me.ehp246.aufjms.core.util
Class OneUtil
java.lang.Object
me.ehp246.aufjms.core.util.OneUtil
- Author:
- Lei Yang
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<? extends Annotation>filter(List<? extends Annotation> annos, Class<? extends Annotation> type) static StringfirstUpper(String value) static booleanstatic booleanisPresent(List<? extends Annotation> annos, Class<? extends Annotation> type) listValues(Collection<String> values) static StringnullIfBlank(Object value) static StringnullIfBlank(String value) static <V> Vstatic <V> Vstatic <V> Vstatic <V,X extends RuntimeException>
VstreamValues(Collection<String> values) static RuntimeExceptionstatic Stringstatic String
-
Method Details
-
firstUpper
-
toString
-
toString
-
nullIfBlank
-
nullIfBlank
-
hasValue
-
streamValues
-
listValues
-
orElse
-
orThrow
-
orThrow
-
orThrow
public static <V,X extends RuntimeException> V orThrow(Callable<V> callable, Function<Exception, X> fn) -
isPresent
-
filter
public static Stream<? extends Annotation> filter(List<? extends Annotation> annos, Class<? extends Annotation> type) -
toRuntime
-