priority
Parameters
priority
The priority of the adapter compared to other registered adapters. The type checks will be sorted by the priority in descending order. This is useful if there are overlaps in types (for example if one adapter handles List<String>
and the other List<T>
). The default priority is 0. Adapters with the same priority is sorted deterministically, but arbitrarily.