as

open fun <ENTRY : MappingEntry?> as(@NonNull entryClass: Class<ENTRY>): ENTRY

Cast the entry to the specified subtype.

Application should refer to the entry type to discover the proper subclass of the entry

Return

the entry instance, casted as requested.

Parameters

entryClass

entry subclass to cast to

<ENTRY>

type of entry class

See also

Throws

in case the entry cannot be casted to the specified subclass