net.anidb
Class CreatorType

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

public class CreatorType
extends java.lang.Object

The creator type.

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

Field Summary
static CreatorType COLLABORATION
          Collaboration.
static CreatorType COMPANY
          Company.
static CreatorType PERSON
          Person.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static CreatorType 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

PERSON

public static final CreatorType PERSON
Person.


COMPANY

public static final CreatorType COMPANY
Company.


COLLABORATION

public static final CreatorType COLLABORATION
Collaboration.

Method Detail

getInstance

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