Package io.keikai.ui.impl
Class UnlockedCellsHelper
- java.lang.Object
-
- io.keikai.ui.impl.UnlockedCellsHelper
-
- All Implemented Interfaces:
java.io.Serializable
public class UnlockedCellsHelper extends java.lang.Object implements java.io.SerializableA utility class for calculating position of unlocked cells. Each unlocked cells of a row or a column is stored as aUnlockedCellsHelper.UnlockedCellInfoin this helper.- Since:
- 3.8.1
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnlockedCellsHelper.UnlockedCellInfo
-
Constructor Summary
Constructors Constructor Description UnlockedCellsHelper(java.util.List<UnlockedCellsHelper.UnlockedCellInfo> infos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnlockedCellsHelper.UnlockedCellInfogetInfo(int cellIndex)java.util.List<UnlockedCellsHelper.UnlockedCellInfo>getInfos()intgetNextUnlocked(int start)intgetPrevUnlocked(int start)booleanisUnlocked(int cellIndex)java.lang.StringtoString()
-
-
-
Constructor Detail
-
UnlockedCellsHelper
public UnlockedCellsHelper(java.util.List<UnlockedCellsHelper.UnlockedCellInfo> infos)
-
-
Method Detail
-
getInfos
public java.util.List<UnlockedCellsHelper.UnlockedCellInfo> getInfos()
-
isUnlocked
public boolean isUnlocked(int cellIndex)
-
getNextUnlocked
public int getNextUnlocked(int start)
-
getPrevUnlocked
public int getPrevUnlocked(int start)
-
getInfo
public UnlockedCellsHelper.UnlockedCellInfo getInfo(int cellIndex)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-