public void showMessage(String title,String message,T data){
  Notification n=new Notification(title,message,listener,expireTime);
  n.setHideMethod(hideMethod);
  n.setFallbackTimeout(maxDisplayTime);
  n.setActivityTime(activityTime);
  if (displayed.size() < maxItems) {
    showNotification(n);
  }
 else {
    queue.add(n);
    checkQueueSize();
  }
  notificationData.put(n,data);
}

public void showMessage ( String title , String message , T data ) { Notification n = new Notification ( title , message , listener , expireTime ) ; n . setHideMethod ( hideMethod ) ; n . setFallbackTimeout ( maxDisplayTime ) ; n . setActivityTime ( activityTime ) ; if ( displayed . size ( ) < maxItems ) { showNotification ( n ) ; } else { queue . add ( n ) ; checkQueueSize ( ) ; } notificationData . put ( n , data ) ; }
create a notification with the given message and either show or queue it .
