|
@@ -0,0 +1,16 @@
|
|
|
+package ElementComparator;
|
|
|
+
|
|
|
+import classes.HolonElement;
|
|
|
+
|
|
|
+public class ElemCompOnObj extends ElementComparator {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int compare(HolonElement a, HolonElement b) {
|
|
|
+
|
|
|
+ String objNameA = a.getObjName();
|
|
|
+ String objNameB = b.getObjName();
|
|
|
+ return objNameA.compareTo(objNameB);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|