import java.util.Objects;
/**
- *
+ * Storage class for set of images of chess board squares.
*
* @author Dmitry Samoshin aka gotty
*/
private final T dark;
private final T light;
- SquarePair(T dark, T light) {
+ private SquarePair(T dark, T light) {
this.dark = dark;
this.light = light;
}
return light;
}
+ public boolean isFilled() {
+ if (this.dark == null || this.light == null) {
+ return false;
+ }
+ return true;
+ }
+
@Override
public boolean equals(Object o) {
if (!(o instanceof SquarePair)) {