(Object key, Object val, Node left, Node right)
| 479 | } |
| 480 | |
| 481 | static Red red(Object key, Object val, Node left, Node right){ |
| 482 | if(left == null && right == null) |
| 483 | { |
| 484 | if(val == null) |
| 485 | return new Red(key); |
| 486 | return new RedVal(key, val); |
| 487 | } |
| 488 | if(val == null) |
| 489 | return new RedBranch(key, left, right); |
| 490 | return new RedBranchVal(key, val, left, right); |
| 491 | } |
| 492 | |
| 493 | static Black black(Object key, Object val, Node left, Node right){ |
| 494 | if(left == null && right == null) |
no outgoing calls
no test coverage detected