| Package | Description |
|---|---|
| net.lecousin.framework.io.serialization |
Serialization and deserialization framework.
|
| net.lecousin.framework.math |
Utility classes.
|
| net.lecousin.framework.xml.serialization |
XML serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
static Number |
AbstractDeserializer.convertStringToInteger(Class<?> type,
String str,
Class<? extends IntegerUnit> targetUnit)
Convert a string into an integer, optionally doing convertion into the targetUnit if any.
|
protected abstract AsyncSupplier<? extends Number,SerializationException> |
AbstractDeserializer.deserializeNumericValue(Class<?> type,
boolean nullable,
Class<? extends IntegerUnit> targetUnit) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TimeUnit
Unit of time.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeUnit.Day
Day time unit.
|
static class |
TimeUnit.Hour
Hour time unit.
|
static class |
TimeUnit.Millisecond
Milliseconds time unit.
|
static class |
TimeUnit.Minute
Minutes time unit.
|
static class |
TimeUnit.Second
Seconds time unit.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<? extends IntegerUnit> |
IntegerUnit.ParserRegistry.get(String text)
Get the unit from the text.
|
| Modifier and Type | Method and Description |
|---|---|
long |
TimeUnit.Converter.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to) |
long |
TimeUnit.Converter.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to) |
long |
IntegerUnit.Converter.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Convert a value.
|
long |
IntegerUnit.Converter.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Convert a value.
|
static long |
IntegerUnit.ConverterRegistry.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Conversion.
|
static long |
IntegerUnit.ConverterRegistry.convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Conversion.
|
long |
TimeUnit.Converter.convertFromMilliseconds(long value,
Class<? extends IntegerUnit> unit)
Convert a value from milliseconds.
|
long |
TimeUnit.Converter.convertToMilliseconds(long value,
Class<? extends IntegerUnit> unit)
Convert a value into milliseconds.
|
static void |
IntegerUnit.ParserRegistry.register(String text,
Class<? extends IntegerUnit> unit)
Register a text as an IntegerUnit.
|
boolean |
TimeUnit.Converter.supportConversion(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to) |
boolean |
TimeUnit.Converter.supportConversion(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to) |
boolean |
IntegerUnit.Converter.supportConversion(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Return true if the conversion is supported.
|
boolean |
IntegerUnit.Converter.supportConversion(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Return true if the conversion is supported.
|
| Constructor and Description |
|---|
UnitConversionException(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to,
long value)
Constructor.
|
UnitConversionException(Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to,
long value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected AsyncSupplier<? extends Number,SerializationException> |
XMLDeserializer.deserializeNumericValue(Class<?> type,
boolean nullable,
Class<? extends IntegerUnit> targetUnit) |
Copyright © 2019. All rights reserved.