public class LangUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
chainCausesMessages(java.lang.Throwable t)
Chain the messages of all causes (one per line, starts with a line
return) without all the stack
|
static java.util.Dictionary<java.lang.String,java.lang.Object> |
dico(java.lang.String key,
java.lang.Object value)
Creates a new
Dictionary with one key-value pair (neither key not
value should be null) |
static java.lang.String |
duration(java.time.temporal.Temporal start,
java.time.temporal.Temporal end)
Formats a duration.
|
static java.lang.Iterable<java.lang.String> |
keys(java.util.Dictionary<java.lang.String,?> props)
Wraps the keys of the provided
Dictionary as an Iterable . |
static java.lang.String[] |
names(java.lang.Class<?>... clzz)
Returns an array with the names of the provided classes.
|
static java.lang.String |
since(java.time.ZonedDateTime start)
Formats time elapsed since start.
|
public static java.lang.String[] names(java.lang.Class<?>... clzz)
public static java.util.Dictionary<java.lang.String,java.lang.Object> dico(java.lang.String key, java.lang.Object value)
Dictionary
with one key-value pair (neither key not
value should be null)public static java.lang.Iterable<java.lang.String> keys(java.util.Dictionary<java.lang.String,?> props)
Dictionary
as an Iterable
.public static java.lang.String chainCausesMessages(java.lang.Throwable t)
public static java.lang.String since(java.time.ZonedDateTime start)
public static java.lang.String duration(java.time.temporal.Temporal start, java.time.temporal.Temporal end)
Copyright © 2007–2020. All rights reserved.