/** 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_ADJUSTED_TO_UTC: return isSetIsAdjustedToUTC(); case UNIT: return isSetUnit(); } 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 java.lang.IllegalArgumentException(); } switch (field) { case IS_ADJUSTED_TO_UTC: return isSetIsAdjustedToUTC(); case UNIT: return isSetUnit(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(TimeType other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetIsAdjustedToUTC()).compareTo(other.isSetIsAdjustedToUTC()); if (lastComparison != 0) { return lastComparison; } if (isSetIsAdjustedToUTC()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdjustedToUTC, other.isAdjustedToUTC); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetUnit()).compareTo(other.isSetUnit()); if (lastComparison != 0) { return lastComparison; } if (isSetUnit()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit, other.unit); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(TimeType other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetIsAdjustedToUTC()).compareTo(other.isSetIsAdjustedToUTC()); if (lastComparison != 0) { return lastComparison; } if (isSetIsAdjustedToUTC()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdjustedToUTC, other.isAdjustedToUTC); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetUnit()).compareTo(other.isSetUnit()); if (lastComparison != 0) { return lastComparison; } if (isSetUnit()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit, other.unit); if (lastComparison != 0) { return lastComparison; } } return 0; }
if (!struct.isSetIsAdjustedToUTC()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'isAdjustedToUTC' was not found in serialized data! Struct: " + toString());
if (!struct.isSetIsAdjustedToUTC()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'isAdjustedToUTC' was not found in serialized data! Struct: " + toString());