Coral-Core

Kotlin library to add convient classes and function.

License

License

GroupId

GroupId

org.tenkiv.coral
ArtifactId

ArtifactId

coral
Last Version

Last Version

2.1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

Coral-Core
Kotlin library to add convient classes and function.
Source Code Management

Source Code Management

https://github.com/Tenkiv/Coral.git

Download coral

How to add to project

<!-- https://jarcasting.com/artifacts/org.tenkiv.coral/coral/ -->
<dependency>
    <groupId>org.tenkiv.coral</groupId>
    <artifactId>coral</artifactId>
    <version>2.1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.tenkiv.coral/coral/
implementation 'org.tenkiv.coral:coral:2.1.2.1'
// https://jarcasting.com/artifacts/org.tenkiv.coral/coral/
implementation ("org.tenkiv.coral:coral:2.1.2.1")
'org.tenkiv.coral:coral:jar:2.1.2.1'
<dependency org="org.tenkiv.coral" name="coral" rev="2.1.2.1">
  <artifact name="coral" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.tenkiv.coral', module='coral', version='2.1.2.1')
)
libraryDependencies += "org.tenkiv.coral" % "coral" % "2.1.2.1"
[org.tenkiv.coral/coral "2.1.2.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.tenkiv.coral : coral-common jar 2.1.2.1
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.10

test (2)

Group / Artifact Type Version
io.kotlintest : kotlintest-runner-junit5 jar 3.1.0
org.jetbrains.kotlin : kotlin-reflect jar 1.3.10

Project Modules

There are no modules declared in this project.

Coral  License Matrix

Coral is a common set of kotlin stdlib and platform stdlib extensions used in many of our Kotlin projects at Tenkiv.

Common Maven Central
JVM Maven Central

Current features:

  • unimut() delegate that initialises a variable to null then allows to be set exactly once at any time. Has optional Thread synchronisation built in, as well as optional onSet() and onGet() functions to be executed accordingly. It throws a specific exception if you attempt to set it more than once which means you don't need to check for null when using a variable set with this delegate, works similarly to lateinit var.
  • feq() operator for generalised floating point equality.
  • Long extension properties for converting kotlin Longs into Durations.
  • can() operator for checking if a class is equal to or inherits from another class (like the is operator but for classes instead of instances of classes, in Java this is the isAssignableFrom() method).
  • ValueInstant typed tuple for pairing any value with a moment in time.
  • average() and findRatio() extension functions for collections.
org.tenkiv.coral

Tenkiv

Versions

Version
2.1.2.1
2.0.1.1
2.0.0.1