/** 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 ROOT_ID: return isSetRootId(); case NODE_MAP: return isSetNodeMap(); } throw new IllegalStateException(); }
public int compareTo(TPathsDump other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; TPathsDump typedOther = (TPathsDump)other; lastComparison = Boolean.valueOf(isSetRootId()).compareTo(typedOther.isSetRootId()); if (lastComparison != 0) { return lastComparison; } if (isSetRootId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootId, typedOther.rootId); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNodeMap()).compareTo(typedOther.isSetNodeMap()); if (lastComparison != 0) { return lastComparison; } if (isSetNodeMap()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeMap, typedOther.nodeMap); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetRootId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'rootId' is unset! Struct:" + toString()); } if (!isSetNodeMap()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'nodeMap' is unset! Struct:" + toString()); } // check for sub-struct validity }