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