
tech.aroma.thrift.service.GetDashboardResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aroma-thrift Show documentation
Show all versions of aroma-thrift Show documentation
Part of the Aroma Project.
This project contains the Service and Model Definitions.
From this the Server and Client interfaces are generated for the Aroma Service.
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package tech.aroma.thrift.service;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-10")
public class GetDashboardResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDashboardResponse");
private static final org.apache.thrift.protocol.TField UNREAD_MESSAGE_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("unreadMessageCount", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField TOTAL_MESSAGES_LAST_HOUR_FIELD_DESC = new org.apache.thrift.protocol.TField("totalMessagesLastHour", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField TOTAL_MESSAGES_LAST24HRS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalMessagesLast24hrs", org.apache.thrift.protocol.TType.I32, (short)3);
private static final org.apache.thrift.protocol.TField RECENT_MESSAGES_FIELD_DESC = new org.apache.thrift.protocol.TField("recentMessages", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField NUMBER_OF_LOW_URGENCY_MESSAGES_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfLowUrgencyMessages", org.apache.thrift.protocol.TType.I32, (short)5);
private static final org.apache.thrift.protocol.TField NUMBER_OF_MEDIUM_URGENCY_MESSAGES_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfMediumUrgencyMessages", org.apache.thrift.protocol.TType.I32, (short)6);
private static final org.apache.thrift.protocol.TField NUMBER_OF_HIGH_URGENCY_MESSAGES_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfHighUrgencyMessages", org.apache.thrift.protocol.TType.I32, (short)7);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new GetDashboardResponseStandardSchemeFactory());
schemes.put(TupleScheme.class, new GetDashboardResponseTupleSchemeFactory());
}
public int unreadMessageCount; // required
public int totalMessagesLastHour; // required
public int totalMessagesLast24hrs; // required
public List recentMessages; // required
public int numberOfLowUrgencyMessages; // required
public int numberOfMediumUrgencyMessages; // required
public int numberOfHighUrgencyMessages; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
UNREAD_MESSAGE_COUNT((short)1, "unreadMessageCount"),
TOTAL_MESSAGES_LAST_HOUR((short)2, "totalMessagesLastHour"),
TOTAL_MESSAGES_LAST24HRS((short)3, "totalMessagesLast24hrs"),
RECENT_MESSAGES((short)4, "recentMessages"),
NUMBER_OF_LOW_URGENCY_MESSAGES((short)5, "numberOfLowUrgencyMessages"),
NUMBER_OF_MEDIUM_URGENCY_MESSAGES((short)6, "numberOfMediumUrgencyMessages"),
NUMBER_OF_HIGH_URGENCY_MESSAGES((short)7, "numberOfHighUrgencyMessages");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // UNREAD_MESSAGE_COUNT
return UNREAD_MESSAGE_COUNT;
case 2: // TOTAL_MESSAGES_LAST_HOUR
return TOTAL_MESSAGES_LAST_HOUR;
case 3: // TOTAL_MESSAGES_LAST24HRS
return TOTAL_MESSAGES_LAST24HRS;
case 4: // RECENT_MESSAGES
return RECENT_MESSAGES;
case 5: // NUMBER_OF_LOW_URGENCY_MESSAGES
return NUMBER_OF_LOW_URGENCY_MESSAGES;
case 6: // NUMBER_OF_MEDIUM_URGENCY_MESSAGES
return NUMBER_OF_MEDIUM_URGENCY_MESSAGES;
case 7: // NUMBER_OF_HIGH_URGENCY_MESSAGES
return NUMBER_OF_HIGH_URGENCY_MESSAGES;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __UNREADMESSAGECOUNT_ISSET_ID = 0;
private static final int __TOTALMESSAGESLASTHOUR_ISSET_ID = 1;
private static final int __TOTALMESSAGESLAST24HRS_ISSET_ID = 2;
private static final int __NUMBEROFLOWURGENCYMESSAGES_ISSET_ID = 3;
private static final int __NUMBEROFMEDIUMURGENCYMESSAGES_ISSET_ID = 4;
private static final int __NUMBEROFHIGHURGENCYMESSAGES_ISSET_ID = 5;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.UNREAD_MESSAGE_COUNT, new org.apache.thrift.meta_data.FieldMetaData("unreadMessageCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
tmpMap.put(_Fields.TOTAL_MESSAGES_LAST_HOUR, new org.apache.thrift.meta_data.FieldMetaData("totalMessagesLastHour", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
tmpMap.put(_Fields.TOTAL_MESSAGES_LAST24HRS, new org.apache.thrift.meta_data.FieldMetaData("totalMessagesLast24hrs", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
tmpMap.put(_Fields.RECENT_MESSAGES, new org.apache.thrift.meta_data.FieldMetaData("recentMessages", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, tech.aroma.thrift.Message.class))));
tmpMap.put(_Fields.NUMBER_OF_LOW_URGENCY_MESSAGES, new org.apache.thrift.meta_data.FieldMetaData("numberOfLowUrgencyMessages", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
tmpMap.put(_Fields.NUMBER_OF_MEDIUM_URGENCY_MESSAGES, new org.apache.thrift.meta_data.FieldMetaData("numberOfMediumUrgencyMessages", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
tmpMap.put(_Fields.NUMBER_OF_HIGH_URGENCY_MESSAGES, new org.apache.thrift.meta_data.FieldMetaData("numberOfHighUrgencyMessages", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "int")));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetDashboardResponse.class, metaDataMap);
}
public GetDashboardResponse() {
this.unreadMessageCount = 0;
this.totalMessagesLastHour = 0;
this.totalMessagesLast24hrs = 0;
this.recentMessages = new ArrayList();
this.numberOfLowUrgencyMessages = 0;
this.numberOfMediumUrgencyMessages = 0;
this.numberOfHighUrgencyMessages = 0;
}
public GetDashboardResponse(
int unreadMessageCount,
int totalMessagesLastHour,
int totalMessagesLast24hrs,
List recentMessages,
int numberOfLowUrgencyMessages,
int numberOfMediumUrgencyMessages,
int numberOfHighUrgencyMessages)
{
this();
this.unreadMessageCount = unreadMessageCount;
setUnreadMessageCountIsSet(true);
this.totalMessagesLastHour = totalMessagesLastHour;
setTotalMessagesLastHourIsSet(true);
this.totalMessagesLast24hrs = totalMessagesLast24hrs;
setTotalMessagesLast24hrsIsSet(true);
this.recentMessages = recentMessages;
this.numberOfLowUrgencyMessages = numberOfLowUrgencyMessages;
setNumberOfLowUrgencyMessagesIsSet(true);
this.numberOfMediumUrgencyMessages = numberOfMediumUrgencyMessages;
setNumberOfMediumUrgencyMessagesIsSet(true);
this.numberOfHighUrgencyMessages = numberOfHighUrgencyMessages;
setNumberOfHighUrgencyMessagesIsSet(true);
}
/**
* Performs a deep copy on other.
*/
public GetDashboardResponse(GetDashboardResponse other) {
__isset_bitfield = other.__isset_bitfield;
this.unreadMessageCount = other.unreadMessageCount;
this.totalMessagesLastHour = other.totalMessagesLastHour;
this.totalMessagesLast24hrs = other.totalMessagesLast24hrs;
if (other.isSetRecentMessages()) {
List __this__recentMessages = new ArrayList(other.recentMessages.size());
for (tech.aroma.thrift.Message other_element : other.recentMessages) {
__this__recentMessages.add(new tech.aroma.thrift.Message(other_element));
}
this.recentMessages = __this__recentMessages;
}
this.numberOfLowUrgencyMessages = other.numberOfLowUrgencyMessages;
this.numberOfMediumUrgencyMessages = other.numberOfMediumUrgencyMessages;
this.numberOfHighUrgencyMessages = other.numberOfHighUrgencyMessages;
}
public GetDashboardResponse deepCopy() {
return new GetDashboardResponse(this);
}
@Override
public void clear() {
this.unreadMessageCount = 0;
this.totalMessagesLastHour = 0;
this.totalMessagesLast24hrs = 0;
this.recentMessages = new ArrayList();
this.numberOfLowUrgencyMessages = 0;
this.numberOfMediumUrgencyMessages = 0;
this.numberOfHighUrgencyMessages = 0;
}
public int getUnreadMessageCount() {
return this.unreadMessageCount;
}
public GetDashboardResponse setUnreadMessageCount(int unreadMessageCount) {
this.unreadMessageCount = unreadMessageCount;
setUnreadMessageCountIsSet(true);
return this;
}
public void unsetUnreadMessageCount() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UNREADMESSAGECOUNT_ISSET_ID);
}
/** Returns true if field unreadMessageCount is set (has been assigned a value) and false otherwise */
public boolean isSetUnreadMessageCount() {
return EncodingUtils.testBit(__isset_bitfield, __UNREADMESSAGECOUNT_ISSET_ID);
}
public void setUnreadMessageCountIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UNREADMESSAGECOUNT_ISSET_ID, value);
}
public int getTotalMessagesLastHour() {
return this.totalMessagesLastHour;
}
public GetDashboardResponse setTotalMessagesLastHour(int totalMessagesLastHour) {
this.totalMessagesLastHour = totalMessagesLastHour;
setTotalMessagesLastHourIsSet(true);
return this;
}
public void unsetTotalMessagesLastHour() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALMESSAGESLASTHOUR_ISSET_ID);
}
/** Returns true if field totalMessagesLastHour is set (has been assigned a value) and false otherwise */
public boolean isSetTotalMessagesLastHour() {
return EncodingUtils.testBit(__isset_bitfield, __TOTALMESSAGESLASTHOUR_ISSET_ID);
}
public void setTotalMessagesLastHourIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALMESSAGESLASTHOUR_ISSET_ID, value);
}
public int getTotalMessagesLast24hrs() {
return this.totalMessagesLast24hrs;
}
public GetDashboardResponse setTotalMessagesLast24hrs(int totalMessagesLast24hrs) {
this.totalMessagesLast24hrs = totalMessagesLast24hrs;
setTotalMessagesLast24hrsIsSet(true);
return this;
}
public void unsetTotalMessagesLast24hrs() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALMESSAGESLAST24HRS_ISSET_ID);
}
/** Returns true if field totalMessagesLast24hrs is set (has been assigned a value) and false otherwise */
public boolean isSetTotalMessagesLast24hrs() {
return EncodingUtils.testBit(__isset_bitfield, __TOTALMESSAGESLAST24HRS_ISSET_ID);
}
public void setTotalMessagesLast24hrsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALMESSAGESLAST24HRS_ISSET_ID, value);
}
public int getRecentMessagesSize() {
return (this.recentMessages == null) ? 0 : this.recentMessages.size();
}
public java.util.Iterator getRecentMessagesIterator() {
return (this.recentMessages == null) ? null : this.recentMessages.iterator();
}
public void addToRecentMessages(tech.aroma.thrift.Message elem) {
if (this.recentMessages == null) {
this.recentMessages = new ArrayList();
}
this.recentMessages.add(elem);
}
public List getRecentMessages() {
return this.recentMessages;
}
public GetDashboardResponse setRecentMessages(List recentMessages) {
this.recentMessages = recentMessages;
return this;
}
public void unsetRecentMessages() {
this.recentMessages = null;
}
/** Returns true if field recentMessages is set (has been assigned a value) and false otherwise */
public boolean isSetRecentMessages() {
return this.recentMessages != null;
}
public void setRecentMessagesIsSet(boolean value) {
if (!value) {
this.recentMessages = null;
}
}
public int getNumberOfLowUrgencyMessages() {
return this.numberOfLowUrgencyMessages;
}
public GetDashboardResponse setNumberOfLowUrgencyMessages(int numberOfLowUrgencyMessages) {
this.numberOfLowUrgencyMessages = numberOfLowUrgencyMessages;
setNumberOfLowUrgencyMessagesIsSet(true);
return this;
}
public void unsetNumberOfLowUrgencyMessages() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMBEROFLOWURGENCYMESSAGES_ISSET_ID);
}
/** Returns true if field numberOfLowUrgencyMessages is set (has been assigned a value) and false otherwise */
public boolean isSetNumberOfLowUrgencyMessages() {
return EncodingUtils.testBit(__isset_bitfield, __NUMBEROFLOWURGENCYMESSAGES_ISSET_ID);
}
public void setNumberOfLowUrgencyMessagesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMBEROFLOWURGENCYMESSAGES_ISSET_ID, value);
}
public int getNumberOfMediumUrgencyMessages() {
return this.numberOfMediumUrgencyMessages;
}
public GetDashboardResponse setNumberOfMediumUrgencyMessages(int numberOfMediumUrgencyMessages) {
this.numberOfMediumUrgencyMessages = numberOfMediumUrgencyMessages;
setNumberOfMediumUrgencyMessagesIsSet(true);
return this;
}
public void unsetNumberOfMediumUrgencyMessages() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMBEROFMEDIUMURGENCYMESSAGES_ISSET_ID);
}
/** Returns true if field numberOfMediumUrgencyMessages is set (has been assigned a value) and false otherwise */
public boolean isSetNumberOfMediumUrgencyMessages() {
return EncodingUtils.testBit(__isset_bitfield, __NUMBEROFMEDIUMURGENCYMESSAGES_ISSET_ID);
}
public void setNumberOfMediumUrgencyMessagesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMBEROFMEDIUMURGENCYMESSAGES_ISSET_ID, value);
}
public int getNumberOfHighUrgencyMessages() {
return this.numberOfHighUrgencyMessages;
}
public GetDashboardResponse setNumberOfHighUrgencyMessages(int numberOfHighUrgencyMessages) {
this.numberOfHighUrgencyMessages = numberOfHighUrgencyMessages;
setNumberOfHighUrgencyMessagesIsSet(true);
return this;
}
public void unsetNumberOfHighUrgencyMessages() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMBEROFHIGHURGENCYMESSAGES_ISSET_ID);
}
/** Returns true if field numberOfHighUrgencyMessages is set (has been assigned a value) and false otherwise */
public boolean isSetNumberOfHighUrgencyMessages() {
return EncodingUtils.testBit(__isset_bitfield, __NUMBEROFHIGHURGENCYMESSAGES_ISSET_ID);
}
public void setNumberOfHighUrgencyMessagesIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMBEROFHIGHURGENCYMESSAGES_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case UNREAD_MESSAGE_COUNT:
if (value == null) {
unsetUnreadMessageCount();
} else {
setUnreadMessageCount((Integer)value);
}
break;
case TOTAL_MESSAGES_LAST_HOUR:
if (value == null) {
unsetTotalMessagesLastHour();
} else {
setTotalMessagesLastHour((Integer)value);
}
break;
case TOTAL_MESSAGES_LAST24HRS:
if (value == null) {
unsetTotalMessagesLast24hrs();
} else {
setTotalMessagesLast24hrs((Integer)value);
}
break;
case RECENT_MESSAGES:
if (value == null) {
unsetRecentMessages();
} else {
setRecentMessages((List)value);
}
break;
case NUMBER_OF_LOW_URGENCY_MESSAGES:
if (value == null) {
unsetNumberOfLowUrgencyMessages();
} else {
setNumberOfLowUrgencyMessages((Integer)value);
}
break;
case NUMBER_OF_MEDIUM_URGENCY_MESSAGES:
if (value == null) {
unsetNumberOfMediumUrgencyMessages();
} else {
setNumberOfMediumUrgencyMessages((Integer)value);
}
break;
case NUMBER_OF_HIGH_URGENCY_MESSAGES:
if (value == null) {
unsetNumberOfHighUrgencyMessages();
} else {
setNumberOfHighUrgencyMessages((Integer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case UNREAD_MESSAGE_COUNT:
return getUnreadMessageCount();
case TOTAL_MESSAGES_LAST_HOUR:
return getTotalMessagesLastHour();
case TOTAL_MESSAGES_LAST24HRS:
return getTotalMessagesLast24hrs();
case RECENT_MESSAGES:
return getRecentMessages();
case NUMBER_OF_LOW_URGENCY_MESSAGES:
return getNumberOfLowUrgencyMessages();
case NUMBER_OF_MEDIUM_URGENCY_MESSAGES:
return getNumberOfMediumUrgencyMessages();
case NUMBER_OF_HIGH_URGENCY_MESSAGES:
return getNumberOfHighUrgencyMessages();
}
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 UNREAD_MESSAGE_COUNT:
return isSetUnreadMessageCount();
case TOTAL_MESSAGES_LAST_HOUR:
return isSetTotalMessagesLastHour();
case TOTAL_MESSAGES_LAST24HRS:
return isSetTotalMessagesLast24hrs();
case RECENT_MESSAGES:
return isSetRecentMessages();
case NUMBER_OF_LOW_URGENCY_MESSAGES:
return isSetNumberOfLowUrgencyMessages();
case NUMBER_OF_MEDIUM_URGENCY_MESSAGES:
return isSetNumberOfMediumUrgencyMessages();
case NUMBER_OF_HIGH_URGENCY_MESSAGES:
return isSetNumberOfHighUrgencyMessages();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof GetDashboardResponse)
return this.equals((GetDashboardResponse)that);
return false;
}
public boolean equals(GetDashboardResponse that) {
if (that == null)
return false;
boolean this_present_unreadMessageCount = true;
boolean that_present_unreadMessageCount = true;
if (this_present_unreadMessageCount || that_present_unreadMessageCount) {
if (!(this_present_unreadMessageCount && that_present_unreadMessageCount))
return false;
if (this.unreadMessageCount != that.unreadMessageCount)
return false;
}
boolean this_present_totalMessagesLastHour = true;
boolean that_present_totalMessagesLastHour = true;
if (this_present_totalMessagesLastHour || that_present_totalMessagesLastHour) {
if (!(this_present_totalMessagesLastHour && that_present_totalMessagesLastHour))
return false;
if (this.totalMessagesLastHour != that.totalMessagesLastHour)
return false;
}
boolean this_present_totalMessagesLast24hrs = true;
boolean that_present_totalMessagesLast24hrs = true;
if (this_present_totalMessagesLast24hrs || that_present_totalMessagesLast24hrs) {
if (!(this_present_totalMessagesLast24hrs && that_present_totalMessagesLast24hrs))
return false;
if (this.totalMessagesLast24hrs != that.totalMessagesLast24hrs)
return false;
}
boolean this_present_recentMessages = true && this.isSetRecentMessages();
boolean that_present_recentMessages = true && that.isSetRecentMessages();
if (this_present_recentMessages || that_present_recentMessages) {
if (!(this_present_recentMessages && that_present_recentMessages))
return false;
if (!this.recentMessages.equals(that.recentMessages))
return false;
}
boolean this_present_numberOfLowUrgencyMessages = true;
boolean that_present_numberOfLowUrgencyMessages = true;
if (this_present_numberOfLowUrgencyMessages || that_present_numberOfLowUrgencyMessages) {
if (!(this_present_numberOfLowUrgencyMessages && that_present_numberOfLowUrgencyMessages))
return false;
if (this.numberOfLowUrgencyMessages != that.numberOfLowUrgencyMessages)
return false;
}
boolean this_present_numberOfMediumUrgencyMessages = true;
boolean that_present_numberOfMediumUrgencyMessages = true;
if (this_present_numberOfMediumUrgencyMessages || that_present_numberOfMediumUrgencyMessages) {
if (!(this_present_numberOfMediumUrgencyMessages && that_present_numberOfMediumUrgencyMessages))
return false;
if (this.numberOfMediumUrgencyMessages != that.numberOfMediumUrgencyMessages)
return false;
}
boolean this_present_numberOfHighUrgencyMessages = true;
boolean that_present_numberOfHighUrgencyMessages = true;
if (this_present_numberOfHighUrgencyMessages || that_present_numberOfHighUrgencyMessages) {
if (!(this_present_numberOfHighUrgencyMessages && that_present_numberOfHighUrgencyMessages))
return false;
if (this.numberOfHighUrgencyMessages != that.numberOfHighUrgencyMessages)
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy