@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 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; }