summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-07 13:55:40 +0100
committerJonathan Bauer2016-01-07 13:55:40 +0100
commit5ba446543184d5af8185da23b9a5fd28133d5513 (patch)
tree5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java
parent[thrift] added generated Location class (diff)
downloadmaster-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/bwlp/thrift/iface/Satellite.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java49
1 files changed, 34 insertions, 15 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java b/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java
index f2c205c..2d498af 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.9.1)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -29,9 +29,12 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04")
public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._Fields>, java.io.Serializable, Cloneable, Comparable<Satellite> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Satellite");
@@ -139,7 +142,7 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
this();
this.addressList = addressList;
this.displayName = displayName;
- this.certSha256 = certSha256;
+ this.certSha256 = org.apache.thrift.TBaseHelper.copyBinary(certSha256);
}
/**
@@ -155,7 +158,6 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
}
if (other.isSetCertSha256()) {
this.certSha256 = org.apache.thrift.TBaseHelper.copyBinary(other.certSha256);
-;
}
}
@@ -239,16 +241,16 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
}
public ByteBuffer bufferForCertSha256() {
- return certSha256;
+ return org.apache.thrift.TBaseHelper.copyBinary(certSha256);
}
public Satellite setCertSha256(byte[] certSha256) {
- setCertSha256(certSha256 == null ? (ByteBuffer)null : ByteBuffer.wrap(certSha256));
+ this.certSha256 = certSha256 == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(certSha256, certSha256.length));
return this;
}
public Satellite setCertSha256(ByteBuffer certSha256) {
- this.certSha256 = certSha256;
+ this.certSha256 = org.apache.thrift.TBaseHelper.copyBinary(certSha256);
return this;
}
@@ -373,7 +375,24 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_addressList = true && (isSetAddressList());
+ list.add(present_addressList);
+ if (present_addressList)
+ list.add(addressList);
+
+ boolean present_displayName = true && (isSetDisplayName());
+ list.add(present_displayName);
+ if (present_displayName)
+ list.add(displayName);
+
+ boolean present_certSha256 = true && (isSetCertSha256());
+ list.add(present_certSha256);
+ if (present_certSha256)
+ list.add(certSha256);
+
+ return list.hashCode();
}
@Override
@@ -505,11 +524,11 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
{
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
struct.addressList = new ArrayList<String>(_list8.size);
- for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ String _elem9;
+ for (int _i10 = 0; _i10 < _list8.size; ++_i10)
{
- String _elem10;
- _elem10 = iprot.readString();
- struct.addressList.add(_elem10);
+ _elem9 = iprot.readString();
+ struct.addressList.add(_elem9);
}
iprot.readListEnd();
}
@@ -624,11 +643,11 @@ public class Satellite implements org.apache.thrift.TBase<Satellite, Satellite._
{
org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.addressList = new ArrayList<String>(_list13.size);
- for (int _i14 = 0; _i14 < _list13.size; ++_i14)
+ String _elem14;
+ for (int _i15 = 0; _i15 < _list13.size; ++_i15)
{
- String _elem15;
- _elem15 = iprot.readString();
- struct.addressList.add(_elem15);
+ _elem14 = iprot.readString();
+ struct.addressList.add(_elem14);
}
}
struct.setAddressListIsSet(true);