operator []= method

void operator []=(
  1. Color color,
  2. T value
)

Implementation

void operator []=(Color color, T value) {
  if (color == Color.WHITE) {
    _white = value;
  } else {
    _black = value;
  }
}