summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-11 22:35:02 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-11 22:35:02 +0200
commite78c0a1e4a4ebc71502dceccc9ae640862b7ce9e (patch)
tree38517a79011ee280d08da06ce20dba1ac7aebd62 /container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java
parent41704c6a57d53b90b4e764ea4fb9c8ff81ced500 (diff)
downloadcontainer-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.gz
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.bz2
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.xz
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.zip
o Overhauling inheritance, adding a decent start of support for @MappedSuperclass.
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java')
-rw-r--r--container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java
new file mode 100644
index 0000000..d1ed776
--- /dev/null
+++ b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/ElementComparator.java
@@ -0,0 +1,11 @@
+package io.trygvis.container.compiler;
+
+import javax.lang.model.element.Element;
+import java.util.Comparator;
+
+class ElementComparator implements Comparator<Element> {
+ @Override
+ public int compare(Element o1, Element o2) {
+ return o1.asType().toString().compareTo(o2.asType().toString());
+ }
+}