merge

fun merge(other: Token): Token

Merges the given token to this one and returns the merged token. The Token.token and Token.key are taken from given token only if they are not null, otherwise the values from this token are used. Other properties are always taken from given token.

Return

new merged token

Parameters

other

token to merge