operator [] method

T operator [](
  1. Color color
)

Implementation

T operator [](Color color) {
  return (color == Color.WHITE) ? _white : _black;
}