net.anidb
Class File

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

public class File
extends java.lang.Object

A file of an anime episode.

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

Constructor Summary
File()
          Creates a file.
File(java.lang.Long fileId, Episode episode, Group group, java.lang.Long myListId, java.util.List<RelatedEpisode> otherEpisodes, java.lang.Boolean deprecated, java.lang.Integer state, java.lang.Long size, java.lang.String ed2k, java.lang.String md5, java.lang.String sha1, java.lang.String crc32, java.lang.String quality, java.lang.String source, java.util.List<java.lang.String> audioCodecList, java.util.List<java.lang.Long> audioBitrateList, java.lang.String videoCodec, java.lang.Long videoBitrate, java.lang.String videoResolution, java.lang.String fileType, java.lang.String dubLanguage, java.lang.String subLanguage, java.lang.Long lengthInSeconds, java.lang.String description, java.lang.Long airedDate, java.lang.String aniDbFileName)
          Creates a file.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getAiredDate()
          Returns the aired date.
 java.lang.String getAniDbFileName()
          Returns the AniDB file name.
 java.util.List<java.lang.Long> getAudioBitrateList()
          Returns the audio bitrate list.
 java.util.List<java.lang.String> getAudioCodecList()
          Returns the audio codec list.
 java.lang.String getCrc32()
          Returns the crc32 hash.
 java.lang.Boolean getDeprecated()
          Returns the 'is deprecated' flag.
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getDubLanguage()
          Returns the dub language.
 java.lang.String getEd2k()
          Returns the ed2k hash.
 Episode getEpisode()
          Returns the episode.
 java.lang.Long getFileId()
          Returns the file Id.
 java.lang.String getFileType()
          Returns the file type.
 Group getGroup()
          Returns the group.
 java.lang.Long getLengthInSeconds()
          Returns the length in seconds.
 java.lang.String getMd5()
          Returns the md5 hash.
 java.lang.Long getMyListId()
          Returns the MyList Id.
 java.util.List<RelatedEpisode> getOtherEpisodes()
          Returns the list of other episodes.
 java.lang.String getQuality()
          Returns the quality.
 java.lang.String getSha1()
          Returns the sha1 hash.
 java.lang.Long getSize()
          Returns the size.
 java.lang.String getSource()
          Returns the source.
 java.lang.Integer getState()
          Returns the state.
 java.lang.String getSubLanguage()
          Returns the sub language.
 java.lang.Long getVideoBirate()
          Returns the video bitrate.
 java.lang.String getVideoCodec()
          Returns the video codec.
 java.lang.String getVideoResolution()
          Returns the video resolution.
 int hashCode()
           
 void setAiredDate(java.lang.Long airedDate)
          Sets the aired date.
 void setAniDbFileName(java.lang.String aniDbFileName)
          Sets the AniDB file name.
 void setAudioBitrateList(java.util.List<java.lang.Long> audioBitrateList)
          Sets the audio bitrate list.
 void setAudioCodecList(java.util.List<java.lang.String> audioCodecList)
          Sets the audio codec list.
 void setCrc32(java.lang.String crc32)
          Sets the crc32 hash.
 void setDeprecated(java.lang.Boolean deprecated)
          Sets the 'is deprecated' flag.
 void setDescription(java.lang.String description)
          Sets the description.
 void setDubLanguage(java.lang.String dubLanguage)
          Sets the dub language.
 void setEd2k(java.lang.String ed2k)
          Sets the ed2k hash.
 void setEpisode(Episode episode)
          Sets the episode.
 void setFileId(java.lang.Long fileId)
          Sets the file Id.
 void setFileType(java.lang.String fileType)
          Sets the file type.
 void setGroup(Group group)
          Sets the group.
 void setLengthInSeconds(java.lang.Long lengthInSeconds)
          Sets the length in seconds.
 void setMd5(java.lang.String md5)
          Sets the md5 hash.
 void setMyListId(java.lang.Long myListId)
          Sets the MyList Id.
 void setOtherEpisodes(java.util.List<RelatedEpisode> otherEpisodes)
          Sets the list of other episodes.
 void setQuality(java.lang.String quality)
          Sets the quality.
 void setSha1(java.lang.String sha1)
          Sets the sha1 hash.
 void setSize(java.lang.Long size)
          Sets the size.
 void setSource(java.lang.String source)
          Sets the source.
 void setState(java.lang.Integer state)
          Sets the state.
 void setSubLanguage(java.lang.String subLanguage)
          Sets the sub language.
 void setVideoBitrate(java.lang.Long videoBitrate)
          Sets the video bitrate.
 void setVideoCodec(java.lang.String videoCodec)
          Sets the video codec.
 void setVideoResolution(java.lang.String videoResolution)
          Sets the video resolution.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File

public File()
Creates a file.


File

public File(java.lang.Long fileId,
            Episode episode,
            Group group,
            java.lang.Long myListId,
            java.util.List<RelatedEpisode> otherEpisodes,
            java.lang.Boolean deprecated,
            java.lang.Integer state,
            java.lang.Long size,
            java.lang.String ed2k,
            java.lang.String md5,
            java.lang.String sha1,
            java.lang.String crc32,
            java.lang.String quality,
            java.lang.String source,
            java.util.List<java.lang.String> audioCodecList,
            java.util.List<java.lang.Long> audioBitrateList,
            java.lang.String videoCodec,
            java.lang.Long videoBitrate,
            java.lang.String videoResolution,
            java.lang.String fileType,
            java.lang.String dubLanguage,
            java.lang.String subLanguage,
            java.lang.Long lengthInSeconds,
            java.lang.String description,
            java.lang.Long airedDate,
            java.lang.String aniDbFileName)
Creates a file.

Parameters:
fileId - The file Id.
episode - The episode.
group - The group.
myListId - The MyList Id.
otherEpisodes - The list of other episodes.
deprecated - The 'is deprecated' flag.
state - The state.
size - The size.
ed2k - The ed2k hash.
md5 - The md5 hash.
sha1 - The sha1 hash.
crc32 - The crc32 hash.
quality - The quality.
source - The source.
audioCodecList - The audio codec list.
audioBitrateList - The audio bitrate list.
videoCodec - The video codec.
videoBitrate - The video bitrate.
videoResolution - The video resolution.
fileType - The file type.
dubLanguage - The dub language.
subLanguage - The sub language.
lengthInSeconds - The length in seconds.
description - The description.
airedDate - The aired date.
aniDbFileName - The AniDB file name.
Method Detail

getFileId

public java.lang.Long getFileId()
Returns the file Id.

Returns:
The file Id or null, if the file Id isn't set.

setFileId

public void setFileId(java.lang.Long fileId)
Sets the file Id.

Parameters:
fileId - The file Id.

getEpisode

public Episode getEpisode()
Returns the episode.

Returns:
The episode or null, if the episode isn't set.

setEpisode

public void setEpisode(Episode episode)
Sets the episode.

Parameters:
episode - The episode.

getGroup

public Group getGroup()
Returns the group.

Returns:
The group or null, if the group isn't set.

setGroup

public void setGroup(Group group)
Sets the group.

Parameters:
group - The group.

getMyListId

public java.lang.Long getMyListId()
Returns the MyList Id.

Returns:
The MyList Id or null, if the MyList Id isn't set.

setMyListId

public void setMyListId(java.lang.Long myListId)
Sets the MyList Id.

Parameters:
myListId - The MyList Id.

getOtherEpisodes

public java.util.List<RelatedEpisode> getOtherEpisodes()
Returns the list of other episodes.

Returns:
The list of other episodes if the list of other episodes isn't set.

setOtherEpisodes

public void setOtherEpisodes(java.util.List<RelatedEpisode> otherEpisodes)
Sets the list of other episodes.

Parameters:
otherEpisodes - The list of other episodes.

getDeprecated

public java.lang.Boolean getDeprecated()
Returns the 'is deprecated' flag.

Returns:
The 'is deprecated' flag or null, if the 'is deprecated' flag isn't set.

setDeprecated

public void setDeprecated(java.lang.Boolean deprecated)
Sets the 'is deprecated' flag.

Parameters:
deprecated - The 'is deprecated' flag.

getState

public java.lang.Integer getState()
Returns the state.

Returns:
The state or null, if the state isn't set.
See Also:
FileState

setState

public void setState(java.lang.Integer state)
Sets the state.

Parameters:
state - The state.
See Also:
FileState

getSize

public java.lang.Long getSize()
Returns the size.

Returns:
The size or null, if the size isn't set.

setSize

public void setSize(java.lang.Long size)
Sets the size.

Parameters:
size - The size.

getEd2k

public java.lang.String getEd2k()
Returns the ed2k hash.

Returns:
The ed2k hash or null, if the ed2k hash isn't set.

setEd2k

public void setEd2k(java.lang.String ed2k)
Sets the ed2k hash.

Parameters:
ed2k - The ed2k hash.

getMd5

public java.lang.String getMd5()
Returns the md5 hash.

Returns:
The md5 hash or null, if the md5 hash isn't set.

setMd5

public void setMd5(java.lang.String md5)
Sets the md5 hash.

Parameters:
md5 - The md5 hash.

getSha1

public java.lang.String getSha1()
Returns the sha1 hash.

Returns:
The sha1 hash or null, if the sha1 hash isn't set.

setSha1

public void setSha1(java.lang.String sha1)
Sets the sha1 hash.

Parameters:
sha1 - The sha1 hash.

getCrc32

public java.lang.String getCrc32()
Returns the crc32 hash.

Returns:
The crc32 hash or null, if the crc32 hash isn't set.

setCrc32

public void setCrc32(java.lang.String crc32)
Sets the crc32 hash.

Parameters:
crc32 - The crc32 hash.

getQuality

public java.lang.String getQuality()
Returns the quality.

Returns:
The quality or null, if the quality isn't set.

setQuality

public void setQuality(java.lang.String quality)
Sets the quality.

Parameters:
quality - The quality.

getSource

public java.lang.String getSource()
Returns the source.

Returns:
The source or null, if the source isn't set.

setSource

public void setSource(java.lang.String source)
Sets the source.

Parameters:
source - The source.

getAudioCodecList

public java.util.List<java.lang.String> getAudioCodecList()
Returns the audio codec list.

Returns:
The audio codec list or null, if the audio codec list isn't set.

setAudioCodecList

public void setAudioCodecList(java.util.List<java.lang.String> audioCodecList)
Sets the audio codec list.

Parameters:
audioCodecList - The audio codec list.

getAudioBitrateList

public java.util.List<java.lang.Long> getAudioBitrateList()
Returns the audio bitrate list.

Returns:
The audio bitrate list or null, if the audio bitrate list isn't set.

setAudioBitrateList

public void setAudioBitrateList(java.util.List<java.lang.Long> audioBitrateList)
Sets the audio bitrate list.

Parameters:
audioBitrateList - The audio bitrate list.

getVideoCodec

public java.lang.String getVideoCodec()
Returns the video codec.

Returns:
The video codec or null, if the video codec isn't set.

setVideoCodec

public void setVideoCodec(java.lang.String videoCodec)
Sets the video codec.

Parameters:
videoCodec - The video codec.

getVideoBirate

public java.lang.Long getVideoBirate()
Returns the video bitrate.

Returns:
The video bitrate or null, if the video bitrate isn't set.

setVideoBitrate

public void setVideoBitrate(java.lang.Long videoBitrate)
Sets the video bitrate.

Parameters:
videoBitrate - The video bitrate.

getVideoResolution

public java.lang.String getVideoResolution()
Returns the video resolution.

Returns:
The video resolution or null, if video resolution isn't set.

setVideoResolution

public void setVideoResolution(java.lang.String videoResolution)
Sets the video resolution.

Parameters:
videoResolution - The video resolution.

getFileType

public java.lang.String getFileType()
Returns the file type.

Returns:
The file type or null, if the file type isn't set.

setFileType

public void setFileType(java.lang.String fileType)
Sets the file type.

Parameters:
fileType - The file type.

getDubLanguage

public java.lang.String getDubLanguage()
Returns the dub language.

Returns:
The dub language or null, if the dub language isn't set.

setDubLanguage

public void setDubLanguage(java.lang.String dubLanguage)
Sets the dub language.

Parameters:
dubLanguage - The dub language.

getSubLanguage

public java.lang.String getSubLanguage()
Returns the sub language.

Returns:
The sub language or null, if the sub language isn't set.

setSubLanguage

public void setSubLanguage(java.lang.String subLanguage)
Sets the sub language.

Parameters:
subLanguage - The sub language.

getLengthInSeconds

public java.lang.Long getLengthInSeconds()
Returns the length in seconds.

Returns:
The length or null, if the length isn't set.

setLengthInSeconds

public void setLengthInSeconds(java.lang.Long lengthInSeconds)
Sets the length in seconds.

Parameters:
lengthInSeconds - The length.

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
The description or null, if the description isn't set.

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description.

getAiredDate

public java.lang.Long getAiredDate()
Returns the aired date.

Returns:
The aired date or null, if the aired date isn't set.

setAiredDate

public void setAiredDate(java.lang.Long airedDate)
Sets the aired date.

Parameters:
airedDate - The aired date.

getAniDbFileName

public java.lang.String getAniDbFileName()
Returns the AniDB file name.

Returns:
The AniDB file name or null, if the AniDB file name isn't set.

setAniDbFileName

public void setAniDbFileName(java.lang.String aniDbFileName)
Sets the AniDB file name.

Parameters:
aniDbFileName - The AniDB file name.

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