/** 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 MAJOR: return isSetMajor(); case MINOR: return isSetMinor(); } 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 MAJOR: return isSetMajor(); case MINOR: return isSetMinor(); } throw new IllegalStateException(); }
@Override public int compareTo(Revision other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetMajor()).compareTo(other.isSetMajor()); if (lastComparison != 0) { return lastComparison; } if (isSetMajor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.major, other.major); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMinor()).compareTo(other.isSetMinor()); if (lastComparison != 0) { return lastComparison; } if (isSetMinor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minor, other.minor); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(Revision other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetMajor()).compareTo(other.isSetMajor()); if (lastComparison != 0) { return lastComparison; } if (isSetMajor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.major, other.major); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMinor()).compareTo(other.isSetMinor()); if (lastComparison != 0) { return lastComparison; } if (isSetMinor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minor, other.minor); if (lastComparison != 0) { return lastComparison; } } return 0; }
throw new org.apache.thrift.protocol.TProtocolException("Required field 'major' was not found in serialized data! Struct: " + toString()); if (!struct.isSetMinor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'minor' was not found in serialized data! Struct: " + toString());
throw new org.apache.thrift.protocol.TProtocolException("Required field 'major' was not found in serialized data! Struct: " + toString()); if (!struct.isSetMinor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'minor' was not found in serialized data! Struct: " + toString());