net.anidb
Class MessageNotificationType

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

public class MessageNotificationType
extends java.lang.Object

The type of the message.

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

Field Summary
static MessageNotificationType ANNONYMOUS
          Annonymous.
static MessageNotificationType MOD_MESSAGE
          Mod message.
static MessageNotificationType NORMAL_MESSAGE
          Normal message.
static MessageNotificationType SYSTEM_MESSAGE
          System message.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static MessageNotificationType getInstance(int value)
          Returns an instance of the class for the given value.
 long getValue()
          Returns the value.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL_MESSAGE

public static final MessageNotificationType NORMAL_MESSAGE
Normal message.


ANNONYMOUS

public static final MessageNotificationType ANNONYMOUS
Annonymous.


SYSTEM_MESSAGE

public static final MessageNotificationType SYSTEM_MESSAGE
System message.


MOD_MESSAGE

public static final MessageNotificationType MOD_MESSAGE
Mod message.

Method Detail

getInstance

public static MessageNotificationType getInstance(int value)
Returns an instance of the class for the given value.

Parameters:
value - The value.
Returns:
The instance of null, if there is no instance for the given value.

getValue

public long getValue()
Returns the value.

Returns:
The value.

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