Companion

object Companion

Functions

Link copied to clipboard
@Contract(value = "false, _ -> fail")
fun ensure(condition: Boolean, message: String?)

Check that the condition is true, otherwise throw a GraphPreconditionFailure with the given message.

Link copied to clipboard
@Contract(value = "null, _ -> fail")
fun notNull(o: Any?, message: String?)

Check that the object is not null, otherwise throw a GraphPreconditionFailure with the given message.