return (TypedRegion[]) list.toArray(new TypedRegion[list.size()]);
}
- private void showList(List list) {
- try {
- throw new NullPointerException();
- } catch (Exception e) {
- e.printStackTrace();
- }
- System.out.println(">>>>>List start");
- TypedRegion temp;
- for (int i = 0; i < list.size(); i++) {
- temp = (TypedRegion) list.get(i);
- System.out.print("Offset: ");
- System.out.print(temp.getOffset());
- System.out.print(", Length: ");
- System.out.print(temp.getLength());
- System.out.print(", Type: ");
- System.out.print(temp.getType());
- System.out.println("");
- }
- System.out.println("<<<<<List end");
- }
+// private void showList(List list) {
+// try {
+// throw new NullPointerException();
+// } catch (Exception e) {
+// e.printStackTrace();
+// }
+// System.out.println(">>>>>List start");
+// TypedRegion temp;
+// for (int i = 0; i < list.size(); i++) {
+// temp = (TypedRegion) list.get(i);
+// System.out.print("Offset: ");
+// System.out.print(temp.getOffset());
+// System.out.print(", Length: ");
+// System.out.print(temp.getLength());
+// System.out.print(", Type: ");
+// System.out.print(temp.getType());
+// System.out.println("");
+// }
+// System.out.println("<<<<<List end");
+// }
private void addOuterPartitions(List list, int offset, int length,
FlatNode prev, FlatNode next) {