/** * Performs a deep copy on <i>other</i>. */ public AccessControl(AccessControl other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_type()) { this.type = other.type; } if (other.is_set_name()) { this.name = other.name; } this.access = other.access; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_type()) ? 131071 : 524287); if (is_set_type()) hashCode = hashCode * 8191 + type.getValue(); hashCode = hashCode * 8191 + ((is_set_name()) ? 131071 : 524287); if (is_set_name()) hashCode = hashCode * 8191 + name.hashCode(); hashCode = hashCode * 8191 + access; return hashCode; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case TYPE: return is_set_type(); case NAME: return is_set_name(); case ACCESS: return is_set_access(); } throw new java.lang.IllegalStateException(); }
return true; boolean this_present_type = true && this.is_set_type(); boolean that_present_type = true && that.is_set_type(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type))
lastComparison = java.lang.Boolean.valueOf(is_set_type()).compareTo(other.is_set_type()); if (lastComparison != 0) { return lastComparison; if (is_set_type()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) {
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_type()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'type' is unset! Struct:" + toString()); } if (!is_set_access()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'access' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** * Performs a deep copy on <i>other</i>. */ public AccessControl(AccessControl other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_type()) { this.type = other.type; } if (other.is_set_name()) { this.name = other.name; } this.access = other.access; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (is_set_type()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_name = true && (is_set_name()); list.add(present_name); if (present_name) list.add(name); boolean present_access = true; list.add(present_access); if (present_access) list.add(access); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return is_set_type(); case NAME: return is_set_name(); case ACCESS: return is_set_access(); } throw new IllegalStateException(); }
public boolean equals(AccessControl that) { if (that == null) return false; boolean this_present_type = true && this.is_set_type(); boolean that_present_type = true && that.is_set_type(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_name = true && this.is_set_name(); boolean that_present_name = true && that.is_set_name(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_access = true; boolean that_present_access = true; if (this_present_access || that_present_access) { if (!(this_present_access && that_present_access)) return false; if (this.access != that.access) return false; } return true; }
lastComparison = Boolean.valueOf(is_set_type()).compareTo(other.is_set_type()); if (lastComparison != 0) { return lastComparison; if (is_set_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_type()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' is unset! Struct:" + toString()); } if (!is_set_access()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'access' is unset! Struct:" + toString()); } // check for sub-struct validity }