Package-level declarations
JVM information and other useful utilities. Includes basic program settings support at the api/core/com.hexagonkt.core/-jvm object (like loading and retrieving system settings).
Types
Exception with a numeric code.
TODO.
Exception with a list of causes. Cause is null
as it can't be told which one of the list is the cause.
Properties
Internet address used to bind services to all local network interfaces.
This flag is true when assertions are enabled in the JVM (-ea
flag). Assertions are disabled by default in the JVM, but they are enabled (and should be that way) on the tests.
Set of allowed country codes in this JVM.
Set of allowed currency codes in this JVM.
Set of allowed language codes in this JVM.
Internet address used to bind services to the loop-back interface.
Functions
Execute a list of code block collecting the exceptions they may throw, in case there is any error, it throws a MultipleException with all the thrown exceptions.
TODO Add use case and example in documentation. TODO Support multiple words parameters by processing " and '
TODO.
TODO.
TODO.
TODO.
Return the stack trace array of the frames that starts with the given prefix.
TODO.
Syntactic sugar to create an Internet address.
Check if a port is already opened.
TODO.
TODO.
Parse a time duration allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P', however, the 'T' is still mandatory to separate date and time durations.
Parse a local date allowing only to specify the year or the year and the month. Missing month and day will be defaulted to january and one respectively.
Parse a time period allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P'.
Load a '*.properties' file from a URL transforming the content into a plain map. If the resource can not be found, a com.hexagonkt.core.ResourceNotFoundException is thrown.
TODO.
TODO.
Convert a date to a local date.
Parse a date from a formatted integer with this format: YYYYMMDD
.
Convert a date to a local date time.
Parse a date time from a formatted number with this format: YYYYMMDDHHmmss
.
Parse a time from a formatted integer with this format: HHmmssSSS
.
Calculate the aproximate number of days comprised in a time period.