Coral-Core

Kotlin library to add convient classes and function.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

org.tenkiv.coral.jdk
ArtifactId

ArtifactId

core
Last Version

Last Version

1.0.1.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 core

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.2.20

test (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-reflect jar 1.2.20
io.kotlintest : kotlintest jar 2.0.7

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.jdk

Tenkiv

Versions

Version
1.0.1.1
1.0.1.0
1.0.0.2
1.0.0.1
1.0.0.0
0.14.0.0
0.13.1.0
0.13.0.0