endsWith

fun endsWith(ref: BytesRef, suffix: BytesRef): Boolean

Returns true iff the ref ends with the given suffix. Otherwise false.

Return

Returns true iff the ref ends with the given suffix. Otherwise false * .

Parameters

ref

the BytesRef to test

suffix

the expected suffix