/** 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 java.lang.IllegalArgumentException(); } switch (field) { case SETTABLE: return is_set_settable(); case VERSION: return is_set_version(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(ReadableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_settable()).compareTo(other.is_set_settable()); if (lastComparison != 0) { return lastComparison; } if (is_set_settable()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.settable, other.settable); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_version()).compareTo(other.is_set_version()); if (lastComparison != 0) { return lastComparison; } if (is_set_version()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }
/** 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 SETTABLE: return is_set_settable(); case VERSION: return is_set_version(); } throw new IllegalStateException(); }
@Override public int compareTo(ReadableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_settable()).compareTo(other.is_set_settable()); if (lastComparison != 0) { return lastComparison; } if (is_set_settable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settable, other.settable); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_version()).compareTo(other.is_set_version()); if (lastComparison != 0) { return lastComparison; } if (is_set_version()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }