001 package com.croftsoft.apps.chat.request; 002 003 import com.croftsoft.core.security.Authentication; 004 005 /********************************************************************* 006 * A request that can be coalesced. 007 * 008 * @version 009 * 2003-06-20 010 * @since 011 * 2003-06-20 012 * @author 013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 014 *********************************************************************/ 015 016 public abstract class CoalesceableRequest 017 extends AbstractRequest 018 ////////////////////////////////////////////////////////////////////// 019 ////////////////////////////////////////////////////////////////////// 020 { 021 022 public CoalesceableRequest ( Authentication authentication ) 023 ////////////////////////////////////////////////////////////////////// 024 { 025 super ( authentication ); 026 } 027 028 ////////////////////////////////////////////////////////////////////// 029 ////////////////////////////////////////////////////////////////////// 030 031 public boolean equals ( Object other ) 032 ////////////////////////////////////////////////////////////////////// 033 { 034 if ( other == null ) 035 { 036 return false; 037 } 038 039 return this.getClass ( ) == other.getClass ( ); 040 } 041 042 ////////////////////////////////////////////////////////////////////// 043 ////////////////////////////////////////////////////////////////////// 044 }