Package com.nulabinc.zxcvbn.matchers
Class AlignedAdjacentGraphBuilder
- java.lang.Object
-
- com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder
-
- com.nulabinc.zxcvbn.matchers.AlignedAdjacentGraphBuilder
-
public class AlignedAdjacentGraphBuilder extends Keyboard.AdjacentGraphBuilder
-
-
Constructor Summary
Constructors Constructor Description AlignedAdjacentGraphBuilder(java.lang.String layout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalcSlant(int y)protected java.util.List<com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position>getAdjacentCoords(com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position position)returns the nine clockwise adjacent coordinates on a keypad, where each row is vert aligned.booleanisSlanted()-
Methods inherited from class com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder
build
-
-
-
-
Method Detail
-
isSlanted
public boolean isSlanted()
- Specified by:
isSlantedin classKeyboard.AdjacentGraphBuilder
-
calcSlant
protected int calcSlant(int y)
- Specified by:
calcSlantin classKeyboard.AdjacentGraphBuilder
-
getAdjacentCoords
protected java.util.List<com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position> getAdjacentCoords(com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position position)
returns the nine clockwise adjacent coordinates on a keypad, where each row is vert aligned.- Specified by:
getAdjacentCoordsin classKeyboard.AdjacentGraphBuilder
-
-