diff options
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java b/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java index 5538ce1..a3b8d8a 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.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 LecturePermissions implements org.apache.thrift.TBase<LecturePermissions, LecturePermissions._Fields>, java.io.Serializable, Cloneable, Comparable<LecturePermissions> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LecturePermissions"); @@ -228,10 +231,10 @@ public class LecturePermissions implements org.apache.thrift.TBase<LecturePermis public Object getFieldValue(_Fields field) { switch (field) { case EDIT: - return Boolean.valueOf(isEdit()); + return isEdit(); case ADMIN: - return Boolean.valueOf(isAdmin()); + return isAdmin(); } throw new IllegalStateException(); @@ -288,7 +291,19 @@ public class LecturePermissions implements org.apache.thrift.TBase<LecturePermis @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + boolean present_edit = true; + list.add(present_edit); + if (present_edit) + list.add(edit); + + boolean present_admin = true; + list.add(present_admin); + if (present_admin) + list.add(admin); + + return list.hashCode(); } @Override |