net.anidb
Class VoteType

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

public class VoteType
extends java.lang.Object

The type of a vote.

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

Field Summary
static VoteType ANIME
          Anime.
static VoteType ANIME_TMPVOTE
          Anime temporary vote.
static VoteType GROUP
          Group.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static VoteType 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

ANIME

public static final VoteType ANIME
Anime.


ANIME_TMPVOTE

public static final VoteType ANIME_TMPVOTE
Anime temporary vote.


GROUP

public static final VoteType GROUP
Group.

Method Detail

getInstance

public static VoteType 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