From 5ba446543184d5af8185da23b9a5fd28133d5513 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 7 Jan 2016 13:55:40 +0100 Subject: added "onlyInLocations" flag for LectureWrite update thrift files to 0.9.3 --- src/main/java/org/openslx/thrifthelper/Comparators.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main/java/org/openslx/thrifthelper/Comparators.java') 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 = new Comparator() { +// @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 ); +// } +// }; + } -- cgit v1.2.3-55-g7522