compares this conversation with another conversation . this compares the two conversations by their types , and then by their names . concode_field_sep int TYPE_QUERY concode_elem_sep int STATUS_DEFAULT concode_elem_sep int newMentions concode_elem_sep int TYPE_CHANNEL concode_elem_sep int[] typeList concode_elem_sep int DEFAULT_HISTORY_SIZE concode_elem_sep LinkedList<Message> history concode_elem_sep int STATUS_MESSAGE concode_elem_sep Server _server concode_elem_sep int historySize concode_elem_sep String name concode_elem_sep int STATUS_HIGHLIGHT concode_elem_sep int STATUS_MISC concode_elem_sep LinkedList<Message> buffer concode_elem_sep int TYPE_SERVER concode_elem_sep int STATUS_SELECTED concode_elem_sep int status concode_field_sep void addNewMention concode_elem_sep String getName concode_elem_sep LinkedList<Message> getBuffer concode_elem_sep void setHistorySize concode_elem_sep void clearBuffer concode_elem_sep Message getHistoryMessage concode_elem_sep int getStatus concode_elem_sep void addMessage concode_elem_sep void setStatus concode_elem_sep int getNewMentions concode_elem_sep int getHistorySize concode_elem_sep boolean hasBufferedMessages concode_elem_sep LinkedList<Message> getHistory concode_elem_sep void clearHistory concode_elem_sep int getType concode_elem_sep void clearNewMentions concode_elem_sep Message pollBufferedMessage concode_elem_sep void setOwningServer
int function ( Conversation arg0 ) { int loc0 = Arrays . binarySearch ( typeList , getType ( ) ) ; int loc1 = Arrays . binarySearch ( typeList , arg0 . getType ( ) ) ; if ( loc0 == loc1 ) { return name . compareToIgnoreCase ( arg0 . name ) ; } return Integer . valueOf ( loc1 ) . compareTo ( Integer . valueOf ( loc0 ) ) ; }