(Node h)
| 214 | } |
| 215 | |
| 216 | private Node moveRedLeft(Node h) { |
| 217 | // assert (h != null); |
| 218 | // assert isRed(h) && !isRed(h.left) && !isRed(h.left.left); |
| 219 | |
| 220 | flipColors(h); |
| 221 | if (isRed(h.right.left)) { |
| 222 | h.right = rotateRight(h.right); |
| 223 | h = rotateLeft(h); |
| 224 | flipColors(h); |
| 225 | } |
| 226 | return h; |
| 227 | } |
| 228 | |
| 229 | private Node moveRedRight(Node h) { |
| 230 | // assert (h != null); |
no test coverage detected