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/bwlp/thrift/iface/OperatingSystem.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/bwlp/thrift/iface/OperatingSystem.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java | 69 |
1 files changed, 52 insertions, 17 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java b/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java index 8466a67..364ad03 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.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 OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, OperatingSystem._Fields>, java.io.Serializable, Cloneable, Comparable<OperatingSystem> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OperatingSystem"); @@ -422,7 +425,7 @@ public class OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, public Object getFieldValue(_Fields field) { switch (field) { case OS_ID: - return Integer.valueOf(getOsId()); + return getOsId(); case OS_NAME: return getOsName(); @@ -434,10 +437,10 @@ public class OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, return getArchitecture(); case MAX_MEM_MB: - return Integer.valueOf(getMaxMemMb()); + return getMaxMemMb(); case MAX_CORES: - return Integer.valueOf(getMaxCores()); + return getMaxCores(); } throw new IllegalStateException(); @@ -538,7 +541,39 @@ public class OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + boolean present_osId = true; + list.add(present_osId); + if (present_osId) + list.add(osId); + + boolean present_osName = true && (isSetOsName()); + list.add(present_osName); + if (present_osName) + list.add(osName); + + boolean present_virtualizerOsId = true && (isSetVirtualizerOsId()); + list.add(present_virtualizerOsId); + if (present_virtualizerOsId) + list.add(virtualizerOsId); + + boolean present_architecture = true && (isSetArchitecture()); + list.add(present_architecture); + if (present_architecture) + list.add(architecture); + + boolean present_maxMemMb = true; + list.add(present_maxMemMb); + if (present_maxMemMb) + list.add(maxMemMb); + + boolean present_maxCores = true; + list.add(present_maxCores); + if (present_maxCores) + list.add(maxCores); + + return list.hashCode(); } @Override @@ -730,13 +765,13 @@ public class OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, { org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); struct.virtualizerOsId = new HashMap<String,String>(2*_map24.size); - for (int _i25 = 0; _i25 < _map24.size; ++_i25) + String _key25; + String _val26; + for (int _i27 = 0; _i27 < _map24.size; ++_i27) { - String _key26; - String _val27; - _key26 = iprot.readString(); - _val27 = iprot.readString(); - struct.virtualizerOsId.put(_key26, _val27); + _key25 = iprot.readString(); + _val26 = iprot.readString(); + struct.virtualizerOsId.put(_key25, _val26); } iprot.readMapEnd(); } @@ -896,13 +931,13 @@ public class OperatingSystem implements org.apache.thrift.TBase<OperatingSystem, { org.apache.thrift.protocol.TMap _map30 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.virtualizerOsId = new HashMap<String,String>(2*_map30.size); - for (int _i31 = 0; _i31 < _map30.size; ++_i31) + String _key31; + String _val32; + for (int _i33 = 0; _i33 < _map30.size; ++_i33) { - String _key32; - String _val33; - _key32 = iprot.readString(); - _val33 = iprot.readString(); - struct.virtualizerOsId.put(_key32, _val33); + _key31 = iprot.readString(); + _val32 = iprot.readString(); + struct.virtualizerOsId.put(_key31, _val32); } } struct.setVirtualizerOsIdIsSet(true); |