AdapterReadApi

interface AdapterReadApi<ITEM>

Common read-only contract for adapter item access.

어댑터 아이템 조회를 위한 공통 읽기 전용 계약입니다.

Inheritors

Functions

Link copied to clipboard
abstract fun getItemOrNull(position: Int): ITEM?

Returns item at position safely, or null.

지정 위치 아이템을 안전하게 조회하며 없으면 null을 반환합니다.

Link copied to clipboard
abstract fun getItemPosition(item: ITEM): Int

Returns index of the target item, or -1 when not found.

대상 아이템의 인덱스를 반환하며, 없으면 -1을 반환합니다.

Link copied to clipboard
abstract fun getItems(): List<ITEM>

Returns current immutable item list.

현재 불변 아이템 리스트를 반환합니다.

Link copied to clipboard

Returns mutable snapshot copy of current item list.

현재 아이템 리스트의 가변 스냅샷 복사본을 반환합니다.