public class Edge
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
hasColor(ColorsEnum color)
Checks if edge has an element with given color.
|
boolean |
onFace(FacesEnum face)
Checks if edge is on given face.
|
public boolean hasColor(ColorsEnum color)
color
- Color of elementpublic boolean onFace(FacesEnum face)
face
- Face of the Rubik's Cube.