public int compareTo(get_all_authz_updates_from_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; get_all_authz_updates_from_args typedOther = (get_all_authz_updates_from_args)other; lastComparison = Boolean.valueOf(isSetPermSeqNum()).compareTo(typedOther.isSetPermSeqNum()); if (lastComparison != 0) { return lastComparison; } if (isSetPermSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permSeqNum, typedOther.permSeqNum); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(typedOther.isSetPathSeqNum()); if (lastComparison != 0) { return lastComparison; } if (isSetPathSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, typedOther.pathSeqNum); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** 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 PERM_SEQ_NUM: return isSetPermSeqNum(); case PATH_SEQ_NUM: return isSetPathSeqNum(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, get_all_authz_updates_from_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPermSeqNum()) { optionals.set(0); } if (struct.isSetPathSeqNum()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPermSeqNum()) { oprot.writeI64(struct.permSeqNum); } if (struct.isSetPathSeqNum()) { oprot.writeI64(struct.pathSeqNum); } }