@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_acl()) ? 131071 : 524287); if (is_set_acl()) hashCode = hashCode * 8191 + acl.hashCode(); hashCode = hashCode * 8191 + ((is_set_replication_factor()) ? 131071 : 524287); if (is_set_replication_factor()) hashCode = hashCode * 8191 + replication_factor; 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 ACL: return is_set_acl(); case REPLICATION_FACTOR: return is_set_replication_factor(); } throw new java.lang.IllegalStateException(); }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("SettableBlobMeta("); boolean first = true; sb.append("acl:"); if (this.acl == null) { sb.append("null"); } else { sb.append(this.acl); } first = false; if (is_set_replication_factor()) { if (!first) sb.append(", "); sb.append("replication_factor:"); sb.append(this.replication_factor); first = false; } sb.append(")"); return sb.toString(); }
public boolean equals(SettableBlobMeta that) { if (that == null) return false; if (this == that) return true; boolean this_present_acl = true && this.is_set_acl(); boolean that_present_acl = true && that.is_set_acl(); if (this_present_acl || that_present_acl) { if (!(this_present_acl && that_present_acl)) return false; if (!this.acl.equals(that.acl)) return false; } boolean this_present_replication_factor = true && this.is_set_replication_factor(); boolean that_present_replication_factor = true && that.is_set_replication_factor(); if (this_present_replication_factor || that_present_replication_factor) { if (!(this_present_replication_factor && that_present_replication_factor)) return false; if (this.replication_factor != that.replication_factor) return false; } return true; }
@Override public int compareTo(SettableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_acl()).compareTo(other.is_set_acl()); if (lastComparison != 0) { return lastComparison; } if (is_set_acl()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.acl, other.acl); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_replication_factor()).compareTo(other.is_set_replication_factor()); if (lastComparison != 0) { return lastComparison; } if (is_set_replication_factor()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.replication_factor, other.replication_factor); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, SettableBlobMeta struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { oprot.writeI32(struct.acl.size()); for (AccessControl _iter610 : struct.acl) { _iter610.write(oprot); } } java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_replication_factor()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_replication_factor()) { oprot.writeI32(struct.replication_factor); } }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.acl != null) { oprot.writeFieldBegin(ACL_FIELD_DESC); { oprot.writeListBegin(new org.apache.storm.thrift.protocol.TList(org.apache.storm.thrift.protocol.TType.STRUCT, struct.acl.size())); for (AccessControl _iter609 : struct.acl) { _iter609.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 ACL: return is_set_acl(); case REPLICATION_FACTOR: return is_set_replication_factor(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_acl = true && (is_set_acl()); list.add(present_acl); if (present_acl) list.add(acl); boolean present_replication_factor = true && (is_set_replication_factor()); list.add(present_replication_factor); if (present_replication_factor) list.add(replication_factor); return list.hashCode(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("SettableBlobMeta("); boolean first = true; sb.append("acl:"); if (this.acl == null) { sb.append("null"); } else { sb.append(this.acl); } first = false; if (is_set_replication_factor()) { if (!first) sb.append(", "); sb.append("replication_factor:"); sb.append(this.replication_factor); first = false; } sb.append(")"); return sb.toString(); }
public boolean equals(SettableBlobMeta that) { if (that == null) return false; boolean this_present_acl = true && this.is_set_acl(); boolean that_present_acl = true && that.is_set_acl(); if (this_present_acl || that_present_acl) { if (!(this_present_acl && that_present_acl)) return false; if (!this.acl.equals(that.acl)) return false; } boolean this_present_replication_factor = true && this.is_set_replication_factor(); boolean that_present_replication_factor = true && that.is_set_replication_factor(); if (this_present_replication_factor || that_present_replication_factor) { if (!(this_present_replication_factor && that_present_replication_factor)) return false; if (this.replication_factor != that.replication_factor) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SettableBlobMeta struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.acl.size()); for (AccessControl _iter562 : struct.acl) { _iter562.write(oprot); } } BitSet optionals = new BitSet(); if (struct.is_set_replication_factor()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_replication_factor()) { oprot.writeI32(struct.replication_factor); } }
@Override public int compareTo(SettableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_acl()).compareTo(other.is_set_acl()); if (lastComparison != 0) { return lastComparison; } if (is_set_acl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acl, other.acl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_replication_factor()).compareTo(other.is_set_replication_factor()); if (lastComparison != 0) { return lastComparison; } if (is_set_replication_factor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replication_factor, other.replication_factor); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void write(org.apache.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.acl != null) { oprot.writeFieldBegin(ACL_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.acl.size())); for (AccessControl _iter561 : struct.acl) { _iter561.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }