net.anidb
Class NotificationListEntry

java.lang.Object
  extended by net.anidb.NotificationListEntry

public class NotificationListEntry
extends java.lang.Object

A entry in a notify list.

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

Constructor Summary
NotificationListEntry(java.lang.String type, long id)
          Creates an entry.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getId()
          Returns the notification Id.
 java.lang.String getType()
          Returns the type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationListEntry

public NotificationListEntry(java.lang.String type,
                             long id)
Creates an entry.

Parameters:
type - The type.
id - The notification Id.
Throws:
java.lang.IllegalArgumentException - If the type is null.
Method Detail

getType

public java.lang.String getType()
Returns the type.

Returns:
The type.
See Also:
NotificationType

getId

public long getId()
Returns the notification Id.

Returns:
The notification Id.

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