getLayer

abstract fun getLayer(m: Molecule): Optional<Layer<T, P>>(source)

Get the layer associate to the given molecule. If no Layer is associated with the given molecule, return an empty optional.

Return

the Optional containing the Layer associated with the requested molecule

Parameters