Package-level declarations
Utilities to check fields, run programs or shell command, I18n, etc.
Properties
Functions
Link copied to clipboard
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.
Link copied to clipboard
Ensure a collection has a fixed number of elements.
Link copied to clipboard
Link copied to clipboard
fun String.exec(workingDirectory: File = File(System.getProperty("user.dir")), timeout: Long = Long.MAX_VALUE, fail: Boolean = false): String
TODO Add use case and example in documentation.
fun List<String>.exec(workingDirectory: File = File(System.getProperty("user.dir")), timeout: Long = Long.MAX_VALUE, fail: Boolean = true): String
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Load a '*.properties' file from a URL transforming the content into a plain map. If the resource can not be found, a com.hexagontk.core.ResourceNotFoundException is thrown.
Link copied to clipboard
Link copied to clipboard
fun <T : Any, N> T.requireGreaterOrEquals(field: KProperty1<T, Comparable<N>?>, field2: KProperty1<T, N?>)
Link copied to clipboard
Link copied to clipboard
fun <T : Any, N> T.requireLowerOrEquals(field: KProperty1<T, Comparable<N>?>, field2: KProperty1<T, N?>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : ResourceBundle> resourceBundle(locale: Locale = Locale.getDefault()): ResourceBundle
fun <T : ResourceBundle> resourceBundle(type: KClass<T>, locale: Locale = Locale.getDefault()): ResourceBundle
.