/** 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(); case PATH_IMG_NUM: return isSetPathImgNum(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(other.isSetPathSeqNum()); if (lastComparison != 0) { return lastComparison; if (isSetPathSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, other.pathSeqNum); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPermSeqNum()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'permSeqNum' is unset! Struct:" + toString()); } if (!isSetPathSeqNum()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathSeqNum' is unset! Struct:" + toString()); } if (!isSetPathImgNum()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathImgNum' is unset! Struct:" + toString()); } // check for sub-struct validity }