net.anidb
Class Notification

java.lang.Object
  extended by net.anidb.Notification
Direct Known Subclasses:
AnimeNotification, MessageNotification

public abstract class Notification
extends java.lang.Object

A single notification.

Version:
1.0, 14.01.2010
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Constructor Summary
Notification(NotificationListEntry entry)
          Creates a notification.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 NotificationListEntry getEntry()
          Returns the notification list entry.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification(NotificationListEntry entry)
Creates a notification.

Parameters:
entry - The notification list entry.
Throws:
java.lang.IllegalArgumentException - If the notification list entry is null.
Method Detail

getEntry

public NotificationListEntry getEntry()
Returns the notification list entry.

Returns:
The notification list entry.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object