diff options
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java')
-rw-r--r-- | src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java index 8c038cf..2dda1f7 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DownloadData implements org.apache.thrift.TBase<DownloadData, DownloadData._Fields>, java.io.Serializable, Cloneable { +public class DownloadData implements org.apache.thrift.TBase<DownloadData, DownloadData._Fields>, java.io.Serializable, Cloneable, Comparable<DownloadData> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DownloadData"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -153,10 +155,7 @@ public class DownloadData implements org.apache.thrift.TBase<DownloadData, Downl } this.port = other.port; if (other.isSetCrcSums()) { - List<Integer> __this__crcSums = new ArrayList<Integer>(); - for (Integer other_element : other.crcSums) { - __this__crcSums.add(other_element); - } + List<Integer> __this__crcSums = new ArrayList<Integer>(other.crcSums); this.crcSums = __this__crcSums; } } @@ -368,40 +367,40 @@ public class DownloadData implements org.apache.thrift.TBase<DownloadData, Downl return 0; } + @Override public int compareTo(DownloadData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DownloadData typedOther = (DownloadData)other; - lastComparison = Boolean.valueOf(isSetToken()).compareTo(typedOther.isSetToken()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, typedOther.token); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPort()).compareTo(typedOther.isSetPort()); + lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort()); if (lastComparison != 0) { return lastComparison; } if (isSetPort()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, typedOther.port); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCrcSums()).compareTo(typedOther.isSetCrcSums()); + lastComparison = Boolean.valueOf(isSetCrcSums()).compareTo(other.isSetCrcSums()); if (lastComparison != 0) { return lastComparison; } if (isSetCrcSums()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.crcSums, typedOther.crcSums); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.crcSums, other.crcSums); if (lastComparison != 0) { return lastComparison; } @@ -513,7 +512,7 @@ public class DownloadData implements org.apache.thrift.TBase<DownloadData, Downl struct.crcSums = new ArrayList<Integer>(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - int _elem10; // required + int _elem10; _elem10 = iprot.readI32(); struct.crcSums.add(_elem10); } @@ -622,7 +621,7 @@ public class DownloadData implements org.apache.thrift.TBase<DownloadData, Downl struct.crcSums = new ArrayList<Integer>(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - int _elem15; // required + int _elem15; _elem15 = iprot.readI32(); struct.crcSums.add(_elem15); } |