INNER CODE UNIT · Kotlin

index

mikepenz/FastAdapter · fastadapter/src/main/java/com/mikepenz/fastadapter/FastAdapter.kt:885

                index = index.inv() - 1
            }
            return index
        }

        /**
         * Creates a new FastAdapter with the provided adapters
         * if adapters is null, a default ItemAdapter is defined
         *
         * @param adapter the adapters which this FastAdapter should use
         * @return a new FastAdapter
         */
        @JvmStatic
        fun <Item : GenericItem> with(adapter: IAdapter<Item>): FastAdapter<Item> {
            val fastAdapter = FastAdapter<Item>()
            fastAdapter.addAdapter(0, adapter)
            return fastAdapter
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…