requireCompatible

abstract fun requireCompatible(shape: Shape<*, *>): Shape<S, A>

Requires that the given shape is compatible with those provided by this factory; otherwise throws an exception.

Return

the same shape if compatible.

Parameters

shape

the shape to check.