]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/tree/TreeSPath.java
Introduce end to end testing with logging of results
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / structure / tree / TreeSPath.java
index fb66c300b4fe6e12872875cb7709c25b011c2456..5d54f9ac6eabb4eae0224076c10df63bdaacf618 100644 (file)
@@ -12,7 +12,7 @@ import org.argeo.slc.core.structure.StructureRegistry;
  * \r
  * @see TreeSRegistry\r
  */\r
-public class TreeSPath implements StructurePath {\r
+public class TreeSPath implements StructurePath, Comparable<StructurePath> {\r
        /** Default character to use a separator: #. */\r
        public static Character DEFAULT_SEPARATOR = '#';\r
 \r
@@ -103,4 +103,9 @@ public class TreeSPath implements StructurePath {
                return false;\r
        }\r
 \r
+       public int compareTo(StructurePath o) {\r
+               return getAsUniqueString().compareTo(o.getAsUniqueString());\r
+       }\r
+\r
+       \r
 }\r