diff options
author | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
commit | 5ba446543184d5af8185da23b9a5fd28133d5513 (patch) | |
tree | 5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/thrifthelper/Comparators.java | |
parent | [thrift] added generated Location class (diff) | |
download | master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.gz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.xz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.zip |
added "onlyInLocations" flag for LectureWrite
update thrift files to 0.9.3
Diffstat (limited to 'src/main/java/org/openslx/thrifthelper/Comparators.java')
-rw-r--r-- | src/main/java/org/openslx/thrifthelper/Comparators.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/thrifthelper/Comparators.java b/src/main/java/org/openslx/thrifthelper/Comparators.java index 5580cf6..99e55e5 100644 --- a/src/main/java/org/openslx/thrifthelper/Comparators.java +++ b/src/main/java/org/openslx/thrifthelper/Comparators.java @@ -4,6 +4,7 @@ import java.util.Comparator; import org.openslx.bwlp.thrift.iface.ImageSummaryRead; import org.openslx.bwlp.thrift.iface.ImageVersionDetails; +import org.openslx.bwlp.thrift.iface.Location; import org.openslx.bwlp.thrift.iface.OperatingSystem; import org.openslx.bwlp.thrift.iface.Organization; import org.openslx.bwlp.thrift.iface.Virtualizer; @@ -75,4 +76,16 @@ public class Comparators } }; +// public static final Comparator<Location> location = new Comparator<Location>() { +// @Override +// public int compare( Location o1, Location o2 ) +// { +// if ( o1 == null || o1.loca == null ) +// return o2 == null || o2.organizationId == null ? 0 : 1; +// if ( o2 == null || o2.organizationId == null ) +// return -1; +// return o1.organizationId.compareTo( o2.organizationId ); +// } +// }; + } |