@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_isAdjustedToUTC = true; list.add(present_isAdjustedToUTC); if (present_isAdjustedToUTC) list.add(isAdjustedToUTC); boolean present_unit = true && (isSetUnit()); list.add(present_unit); if (present_unit) list.add(unit); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public TimeType(TimeType other) { __isset_bitfield = other.__isset_bitfield; this.isAdjustedToUTC = other.isAdjustedToUTC; if (other.isSetUnit()) { this.unit = new TimeUnit(other.unit); } }
public boolean equals(TimeType that) { if (that == null) return false; boolean this_present_isAdjustedToUTC = true; boolean that_present_isAdjustedToUTC = true; if (this_present_isAdjustedToUTC || that_present_isAdjustedToUTC) { if (!(this_present_isAdjustedToUTC && that_present_isAdjustedToUTC)) return false; if (this.isAdjustedToUTC != that.isAdjustedToUTC) return false; } boolean this_present_unit = true && this.isSetUnit(); boolean that_present_unit = true && that.isSetUnit(); if (this_present_unit || that_present_unit) { if (!(this_present_unit && that_present_unit)) return false; if (!this.unit.equals(that.unit)) return false; } return true; }
public boolean equals(TimeType that) { if (that == null) return false; if (this == that) return true; boolean this_present_isAdjustedToUTC = true; boolean that_present_isAdjustedToUTC = true; if (this_present_isAdjustedToUTC || that_present_isAdjustedToUTC) { if (!(this_present_isAdjustedToUTC && that_present_isAdjustedToUTC)) return false; if (this.isAdjustedToUTC != that.isAdjustedToUTC) return false; } boolean this_present_unit = true && this.isSetUnit(); boolean that_present_unit = true && that.isSetUnit(); if (this_present_unit || that_present_unit) { if (!(this_present_unit && that_present_unit)) return false; if (!this.unit.equals(that.unit)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TimeType(TimeType other) { __isset_bitfield = other.__isset_bitfield; this.isAdjustedToUTC = other.isAdjustedToUTC; if (other.isSetUnit()) { this.unit = new TimeUnit(other.unit); } }
/** 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; }