Package com.biglybt.core.download.impl
Class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
- java.lang.Object
-
- com.biglybt.core.download.impl.DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
-
- All Implemented Interfaces:
TOTorrentAnnounceURLGroup
- Enclosing class:
- DownloadManagerStateImpl.CachedStateWrapper
protected class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup extends java.lang.Object implements TOTorrentAnnounceURLGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
DownloadManagerStateImpl.CachedStateWrapper.cacheGroup.cacheSet
-
Field Summary
Fields Modifier and Type Field Description private TOTorrentAnnounceURLSet[]
sets
private long
uid
-
Constructor Summary
Constructors Modifier Constructor Description protected
cacheGroup(java.util.List group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOTorrentAnnounceURLSet
createAnnounceURLSet(java.net.URL[] urls)
This method will create a new set.(package private) void
fixGroup()
TOTorrentAnnounceURLSet[]
getAnnounceURLSets()
Gets the current sets defined for this group, 0 length if none definedlong
getUID()
void
setAnnounceURLSets(TOTorrentAnnounceURLSet[] toSet)
Sets the group's URL sets to the supplied values.
-
-
-
Field Detail
-
sets
private TOTorrentAnnounceURLSet[] sets
-
uid
private volatile long uid
-
-
Method Detail
-
getUID
public long getUID()
- Specified by:
getUID
in interfaceTOTorrentAnnounceURLGroup
-
getAnnounceURLSets
public TOTorrentAnnounceURLSet[] getAnnounceURLSets()
Description copied from interface:TOTorrentAnnounceURLGroup
Gets the current sets defined for this group, 0 length if none defined- Specified by:
getAnnounceURLSets
in interfaceTOTorrentAnnounceURLGroup
- Returns:
-
fixGroup
void fixGroup()
-
setAnnounceURLSets
public void setAnnounceURLSets(TOTorrentAnnounceURLSet[] toSet)
Description copied from interface:TOTorrentAnnounceURLGroup
Sets the group's URL sets to the supplied values.- Specified by:
setAnnounceURLSets
in interfaceTOTorrentAnnounceURLGroup
-
createAnnounceURLSet
public TOTorrentAnnounceURLSet createAnnounceURLSet(java.net.URL[] urls)
Description copied from interface:TOTorrentAnnounceURLGroup
This method will create a new set. It is not added into the current set, this must be done by the caller inserting the newly created set into an array as required and calling the above "set" method.- Specified by:
createAnnounceURLSet
in interfaceTOTorrentAnnounceURLGroup
- Parameters:
urls
- the URLs for the new set- Returns:
- the newly created set
-
-