Coral-Core

Kotlin library to add convient classes and function.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.tenkiv.coral.jdk
ArtifactId

ArtifactId

core
Last Version

Last Version

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

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.1.2-5

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.
com.tenkiv.coral.jdk

Tenkiv

Versions

Version
0.13.0.0
0.11.3.1
0.11.3.0
'0.11.3.0'