/** * Performs a deep copy on <i>other</i>. */ public Order(Order other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCol()) { this.col = other.col; } this.order = other.order; }
public boolean equals(Order that) { if (that == null) return false; boolean this_present_col = true && this.isSetCol(); boolean that_present_col = true && that.isSetCol(); if (this_present_col || that_present_col) { if (!(this_present_col && that_present_col)) return false; if (!this.col.equals(that.col)) return false; } boolean this_present_order = true; boolean that_present_order = true; if (this_present_order || that_present_order) { if (!(this_present_order && that_present_order)) return false; if (this.order != that.order) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_col = true && (isSetCol()); list.add(present_col); if (present_col) list.add(col); boolean present_order = true; list.add(present_order); if (present_order) list.add(order); 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
@Override public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCol()).compareTo(other.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, other.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(other.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, other.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
/** * Performs a deep copy on <i>other</i>. */ public Order(Order other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCol()) { this.col = other.col; } this.order = other.order; }
/** * Performs a deep copy on <i>other</i>. */ public Order(Order other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCol()) { this.col = other.col; } this.order = other.order; }
/** * Performs a deep copy on <i>other</i>. */ public Order(Order other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCol()) { this.col = other.col; } this.order = other.order; }
/** * Performs a deep copy on <i>other</i>. */ public Order(Order other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetCol()) { this.col = other.col; } this.order = other.order; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_col = true && (isSetCol()); builder.append(present_col); if (present_col) builder.append(col); boolean present_order = true; builder.append(present_order); if (present_order) builder.append(order); return builder.toHashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_col = true && (isSetCol()); list.add(present_col); if (present_col) list.add(col); boolean present_order = true; list.add(present_order); if (present_order) list.add(order); 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COL: return isSetCol(); case ORDER: return isSetOrder(); } 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_col = true && (isSetCol()); builder.append(present_col); if (present_col) builder.append(col); boolean present_order = true; builder.append(present_order); if (present_order) builder.append(order); return builder.toHashCode(); }