700 |
|
check(set, 0, setSize - 1, true); |
701 |
|
check(set.descendingSet(), 0, setSize - 1, false); |
702 |
|
|
703 |
< |
bashSubSet(set.navigableSubSet(0, true, setSize, false), |
703 |
> |
bashSubSet(set.subSet(0, true, setSize, false), |
704 |
|
0, setSize - 1, true); |
705 |
|
} |
706 |
|
|
807 |
|
|
808 |
|
// headSet - pick direction and endpoint inclusion randomly |
809 |
|
boolean incl = rnd.nextBoolean(); |
810 |
< |
NavigableSet<Integer> hm = set.navigableHeadSet(midPoint, incl); |
810 |
> |
NavigableSet<Integer> hm = set.headSet(midPoint, incl); |
811 |
|
if (ascending) { |
812 |
|
if (rnd.nextBoolean()) |
813 |
|
bashSubSet(hm, min, midPoint - (incl ? 0 : 1), true); |
824 |
|
|
825 |
|
// tailSet - pick direction and endpoint inclusion randomly |
826 |
|
incl = rnd.nextBoolean(); |
827 |
< |
NavigableSet<Integer> tm = set.navigableTailSet(midPoint,incl); |
827 |
> |
NavigableSet<Integer> tm = set.tailSet(midPoint,incl); |
828 |
|
if (ascending) { |
829 |
|
if (rnd.nextBoolean()) |
830 |
|
bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true); |
849 |
|
boolean lowIncl = rnd.nextBoolean(); |
850 |
|
boolean highIncl = rnd.nextBoolean(); |
851 |
|
if (ascending) { |
852 |
< |
NavigableSet<Integer> sm = set.navigableSubSet( |
852 |
> |
NavigableSet<Integer> sm = set.subSet( |
853 |
|
endpoints[0], lowIncl, endpoints[1], highIncl); |
854 |
|
if (rnd.nextBoolean()) |
855 |
|
bashSubSet(sm, endpoints[0] + (lowIncl ? 0 : 1), |
858 |
|
bashSubSet(sm.descendingSet(), endpoints[0] + (lowIncl ? 0 : 1), |
859 |
|
endpoints[1] - (highIncl ? 0 : 1), false); |
860 |
|
} else { |
861 |
< |
NavigableSet<Integer> sm = set.navigableSubSet( |
861 |
> |
NavigableSet<Integer> sm = set.subSet( |
862 |
|
endpoints[1], highIncl, endpoints[0], lowIncl); |
863 |
|
if (rnd.nextBoolean()) |
864 |
|
bashSubSet(sm, endpoints[0] + (lowIncl ? 0 : 1), |