requireProperty

abstract fun <T : Comparable<T>> requireProperty(property: Property<T>): T

Gets the value for the given property, or throws an IllegalArgumentException if there is no value for the given property.

Return

the value

Parameters

T

the property type

property

the property

Throws

if there is no value for the property