| Package | Description |
|---|---|
| tech.mlsql.common.utils.base | |
| tech.mlsql.common.utils.collect | |
| tech.mlsql.common.utils.primitives |
| Modifier and Type | Method and Description |
|---|---|
<C> Converter<A,C> |
Converter.andThen(Converter<B,C> secondConverter)
Returns a converter whose
convert method applies secondConverter to the result
of this converter. |
static <T> Converter<T,T> |
Converter.identity()
Returns a serializable converter that always converts or reverses an object to itself.
|
Converter<B,A> |
Converter.reverse()
Returns the reversed view of this converter, which converts
this.convert(a) back to a
value roughly equivalent to a. |
| Modifier and Type | Method and Description |
|---|---|
<C> Converter<A,C> |
Converter.andThen(Converter<B,C> secondConverter)
Returns a converter whose
convert method applies secondConverter to the result
of this converter. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Converter<A,B> |
Maps.asConverter(BiMap<A,B> bimap)
Returns a
Converter that converts values using bimap.get(),
and whose inverse view converts values using
bimap.inverse().get() |
| Modifier and Type | Method and Description |
|---|---|
static Converter<String,Long> |
Longs.stringConverter()
Returns a serializable converter object that converts between strings and
longs using
Long.decode(java.lang.String) and Long.toString(). |
static Converter<String,Integer> |
Ints.stringConverter()
Returns a serializable converter object that converts between strings and
integers using
Integer.decode(java.lang.String) and Integer.toString(). |
static Converter<String,Short> |
Shorts.stringConverter()
Returns a serializable converter object that converts between strings and
shorts using
Short.decode(java.lang.String) and Short.toString(). |
Copyright © 2020. All rights reserved.