Package com.biglybt.core.torrent.impl
Class TOTorrentAnnounceURLGroupImpl
- java.lang.Object
-
- com.biglybt.core.torrent.impl.TOTorrentAnnounceURLGroupImpl
-
- All Implemented Interfaces:
TOTorrentAnnounceURLGroup
public class TOTorrentAnnounceURLGroupImpl extends java.lang.Object implements TOTorrentAnnounceURLGroup
-
-
Field Summary
Fields Modifier and Type Field Description private TOTorrentAnnounceURLSet[]
sets
private TOTorrentImpl
torrent
private long
uid
-
Constructor Summary
Constructors Modifier Constructor Description protected
TOTorrentAnnounceURLGroupImpl(TOTorrentImpl _torrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSet(TOTorrentAnnounceURLSet set)
TOTorrentAnnounceURLSet
createAnnounceURLSet(java.net.URL[] urls)
This method will create a new set.TOTorrentAnnounceURLSet[]
getAnnounceURLSets()
Gets the current sets defined for this group, 0 length if none definedlong
getUID()
void
setAnnounceURLSets(TOTorrentAnnounceURLSet[] _sets)
Sets the group's URL sets to the supplied values.
-
-
-
Field Detail
-
torrent
private final TOTorrentImpl torrent
-
sets
private TOTorrentAnnounceURLSet[] sets
-
uid
private volatile long uid
-
-
Constructor Detail
-
TOTorrentAnnounceURLGroupImpl
protected TOTorrentAnnounceURLGroupImpl(TOTorrentImpl _torrent)
-
-
Method Detail
-
getUID
public long getUID()
- Specified by:
getUID
in interfaceTOTorrentAnnounceURLGroup
-
addSet
protected void addSet(TOTorrentAnnounceURLSet set)
-
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:
-
setAnnounceURLSets
public void setAnnounceURLSets(TOTorrentAnnounceURLSet[] _sets)
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
-
-