---
title: InventoryGUIPageChangeCalculator -
---
//[KSpigot](../../index.md)/[net.axay.kspigot.inventory](../index.md)/[InventoryGUIPageChangeCalculator](index.md)
# InventoryGUIPageChangeCalculator
[jvm] abstract class [InventoryGUIPageChangeCalculator](index.md)
## Types
| Name| Summary|
|---|---|
| [InventoryGUIConsistentPageCalculator](-inventory-g-u-i-consistent-page-calculator/index.md)| [jvm]
Content
class [InventoryGUIConsistentPageCalculator](-inventory-g-u-i-consistent-page-calculator/index.md)(**toPage**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [InventoryGUIPageChangeCalculator](index.md)
| [InventoryGUINextPageCalculator](-inventory-g-u-i-next-page-calculator/index.md)| [jvm]
Content
object [InventoryGUINextPageCalculator](-inventory-g-u-i-next-page-calculator/index.md) : [InventoryGUIPageChangeCalculator](index.md)
| [InventoryGUIPreviousPageCalculator](-inventory-g-u-i-previous-page-calculator/index.md)| [jvm]
Content
object [InventoryGUIPreviousPageCalculator](-inventory-g-u-i-previous-page-calculator/index.md) : [InventoryGUIPageChangeCalculator](index.md)
## Functions
| Name| Summary|
|---|---|
| [calculateNewPage](calculate-new-page.md)| [jvm]
Content
abstract fun [calculateNewPage](calculate-new-page.md)(currentPage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), pages: [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)>): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
| [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)| [jvm]
Content
open operator override fun [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
| [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)| [jvm]
Content
open override fun [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)| [jvm]
Content
open override fun [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
## Inheritors
| Name|
|---|
| [InventoryGUIPageChangeCalculator](-inventory-g-u-i-previous-page-calculator/index.md)
| [InventoryGUIPageChangeCalculator](-inventory-g-u-i-next-page-calculator/index.md)
| [InventoryGUIPageChangeCalculator](-inventory-g-u-i-consistent-page-calculator/index.md)