public boolean equals(SettableBlobMeta that) { if (that == null) 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; }
/** 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 REPLICATION_FACTOR: return is_set_replication_factor(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); 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; if (is_set_replication_factor()) { sb.append("replication_factor:"); sb.append(this.replication_factor); first = false; } sb.append(")"); return sb.toString(); }
@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_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; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SettableBlobMeta struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; 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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public boolean equals(SettableBlobMeta that) { if (that == null) 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; }
/** 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 REPLICATION_FACTOR: return is_set_replication_factor(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); 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; if (is_set_replication_factor()) { sb.append("replication_factor:"); sb.append(this.replication_factor); first = false; } sb.append(")"); return sb.toString(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SettableBlobMeta struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; 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_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.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }