net.anidb
Class MyListState

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

public class MyListState
extends java.lang.Object

The state of a MyList entry.

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

Field Summary
static MyListState DELETED
          Deleted.
static MyListState ON_CD
          On CD.
static MyListState ON_HDD
          On hdd.
static MyListState UNKNOWN
          Unknown.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static MyListState 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

UNKNOWN

public static final MyListState UNKNOWN

Unknown.

The state is unknown or the user doesn't want to provide this information.


ON_HDD

public static final MyListState ON_HDD

On hdd.

The file is stored on hdd (but is not shared).


ON_CD

public static final MyListState ON_CD

On CD.

The file is stored on cd.


DELETED

public static final MyListState DELETED

Deleted.

The file has been deleted or is not available for other reasons (i.e. reencoded).

Method Detail

getInstance

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