Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / Constant

Constant

class Constant<out T : Any> : Scalar<T>

Constant value that never changes.

Parameters

T - Type of scalar

Since 0.3

Constructors

Name Summary
<init> Constant(origin: T)Constant(origin: KScalar<T>)
Constant value that never changes.

Functions

Name Summary
invoke fun invoke(): T
Get value of this Scalar