diff options
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java index 773aa5c..98d3370 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.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 NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields>, java.io.Serializable, Cloneable, Comparable<NetRule> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NetRule"); @@ -334,7 +337,7 @@ public class NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields public Object getFieldValue(_Fields field) { switch (field) { case RULE_ID: - return Integer.valueOf(getRuleId()); + return getRuleId(); case DIRECTION: return getDirection(); @@ -343,7 +346,7 @@ public class NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields return getHost(); case PORT: - return Integer.valueOf(getPort()); + return getPort(); } throw new IllegalStateException(); @@ -422,7 +425,29 @@ public class NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + boolean present_ruleId = true; + list.add(present_ruleId); + if (present_ruleId) + list.add(ruleId); + + boolean present_direction = true && (isSetDirection()); + list.add(present_direction); + if (present_direction) + list.add(direction.getValue()); + + boolean present_host = true && (isSetHost()); + list.add(present_host); + if (present_host) + list.add(host); + + boolean present_port = true; + list.add(present_port); + if (present_port) + list.add(port); + + return list.hashCode(); } @Override @@ -571,7 +596,7 @@ public class NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields break; case 2: // DIRECTION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.direction = NetDirection.findByValue(iprot.readI32()); + struct.direction = org.openslx.bwlp.thrift.iface.NetDirection.findByValue(iprot.readI32()); struct.setDirectionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -678,7 +703,7 @@ public class NetRule implements org.apache.thrift.TBase<NetRule, NetRule._Fields struct.setRuleIdIsSet(true); } if (incoming.get(1)) { - struct.direction = NetDirection.findByValue(iprot.readI32()); + struct.direction = org.openslx.bwlp.thrift.iface.NetDirection.findByValue(iprot.readI32()); struct.setDirectionIsSet(true); } if (incoming.get(2)) { |