Merges the specified position arrays. @param pos sorted positions
(final IntList pos)
| 30 | * @param pos sorted positions |
| 31 | */ |
| 32 | void union(final IntList pos) { |
| 33 | final int ps = list.size(), ls = pos.size(); |
| 34 | final IntSet set = new IntSet(ps + ls); |
| 35 | for(int p = 0; p < ps; p++) set.add(list.get(p)); |
| 36 | for(int l = 0; l < ls; l++) set.add(pos.get(l)); |
| 37 | list = new IntList(set.keys()).sort(); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Checks if the specified position is found. |