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