@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_head = true && (isSetHead()); list.add(present_head); if (present_head) list.add(head); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_head = true && (isSetHead()); list.add(present_head); if (present_head) list.add(head); 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 NAME: return isSetName(); case HEAD: return isSetHead(); } throw new IllegalStateException(); }
/** 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 NAME: return isSetName(); case HEAD: return isSetHead(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Repository struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); BitSet optionals = new BitSet(); if (struct.isSetHead()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetHead()) { struct.head.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Repository struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); BitSet optionals = new BitSet(); if (struct.isSetHead()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetHead()) { struct.head.write(oprot); } }
@Override public String toString() { StringBuilder sb = new StringBuilder("Repository("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (isSetHead()) { if (!first) sb.append(", "); sb.append("head:"); if (this.head == null) { sb.append("null"); } else { sb.append(this.head); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("Repository("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (isSetHead()) { if (!first) sb.append(", "); sb.append("head:"); if (this.head == null) { sb.append("null"); } else { sb.append(this.head); } first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Repository struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.head != null) { if (struct.isSetHead()) { oprot.writeFieldBegin(HEAD_FIELD_DESC); struct.head.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Repository struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.head != null) { if (struct.isSetHead()) { oprot.writeFieldBegin(HEAD_FIELD_DESC); struct.head.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int compareTo(Repository other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetHead()).compareTo(other.isSetHead()); if (lastComparison != 0) { return lastComparison; } if (isSetHead()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.head, other.head); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(Repository other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetHead()).compareTo(other.isSetHead()); if (lastComparison != 0) { return lastComparison; } if (isSetHead()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.head, other.head); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public Repository(Repository other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetHead()) { this.head = new Commit(other.head); } }
public boolean equals(Repository that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); 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_head = true && this.isSetHead(); boolean that_present_head = true && that.isSetHead(); if (this_present_head || that_present_head) { if (!(this_present_head && that_present_head)) return false; if (!this.head.equals(that.head)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Repository(Repository other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetHead()) { this.head = new Commit(other.head); } }
public boolean equals(Repository that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); 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_head = true && this.isSetHead(); boolean that_present_head = true && that.isSetHead(); if (this_present_head || that_present_head) { if (!(this_present_head && that_present_head)) return false; if (!this.head.equals(that.head)) return false; } return true; }