In package com.copperleaf.trellis.api

class com.copperleaf.trellis.api.ValueSpek

Treat a static value as the return value a spek. Value is lazily loaded.

Constructors

public <init>(com.copperleaf.trellis.api.ValueSpek.U)

Parameters:
  • value: com.copperleaf.trellis.api.ValueSpek.U
public <init>(kotlin.Function0((com.copperleaf.trellis.api.ValueSpek.U)))

Treat a static value as the return value a spek. Value is lazily loaded.

Parameters:
  • value: Function0

Methods

public final suspend evaluate(com.copperleaf.trellis.api.ValueSpek.T): com.copperleaf.trellis.api.ValueSpek.U

Parameters:
  • candidate: com.copperleaf.trellis.api.ValueSpek.T

Extensions

public final infix and(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.and.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.and.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
public final infix andNot(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.andNot.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.andNot.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
public final infix or(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.or.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.or.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
public final infix orNot(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.orNot.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.orNot.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
public final not(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.not.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
  • No parameters
public final operator plus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.plus.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.plus.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
public final operator plus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.plus.T, kotlin.Number)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.plus.T, kotlin.Number))): com.copperleaf.trellis.api.AddSpek

Parameters:
public final operator plus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.plus.T, kotlin.Number)), kotlin.Number): com.copperleaf.trellis.api.AddSpek

Parameters:
  • other: Number
public final operator unaryMinus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.unaryMinus.T, kotlin.Boolean))): com.copperleaf.trellis.api.Spek

Parameters:
  • No parameters
public final then(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.then.T, kotlin.Boolean)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.then.T, com.copperleaf.trellis.api.then.U)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.then.T, com.copperleaf.trellis.api.then.U))): com.copperleaf.trellis.api.Spek

Parameters:
public final evaluateSync(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.evaluateSync.T, com.copperleaf.trellis.api.evaluateSync.U)), com.copperleaf.trellis.api.evaluateSync.T): com.copperleaf.trellis.api.evaluateSync.U

Parameters:
  • candidate: com.copperleaf.trellis.api.evaluateSync.T
public final evaluateAsync(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.evaluateAsync.T, com.copperleaf.trellis.api.evaluateAsync.U)), com.copperleaf.trellis.api.evaluateAsync.T, kotlin.Function1((com.copperleaf.trellis.api.evaluateAsync.U, kotlin.Unit))): Unit

Parameters:
  • candidate: com.copperleaf.trellis.api.evaluateAsync.T
  • onComplete: Function1
public final operator minus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.minus.T, kotlin.Number)), com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.minus.T, kotlin.Number))): com.copperleaf.trellis.api.SubtractSpek

Parameters:
public final operator minus(com.copperleaf.trellis.api.Spek((com.copperleaf.trellis.api.minus.T, kotlin.Number)), kotlin.Number): com.copperleaf.trellis.api.SubtractSpek

Parameters:
  • other: Number