withoutPage

@Contract(value = "_ -> new", pure = true)
abstract fun withoutPage(index: Int): I

Creates new item metadata with the page at the given index removed from the pages.

Return

new item metadata

Parameters

index

the index of the page to remove

Throws

if the index would result in an out of bounds exception, i.e. when it is too small or too big


@Contract(value = "_ -> new", pure = true)
abstract fun withoutPage(page: Component): I

Creates new item metadata with the given page removed from the pages.

Return

new item metadata

Parameters

page

the page to remove