Package com.biglybt.core.torrent.impl
Class TOTorrentAnnounceURLGroupImpl
java.lang.Object
com.biglybt.core.torrent.impl.TOTorrentAnnounceURLGroupImpl
- All Implemented Interfaces:
TOTorrentAnnounceURLGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TOTorrentAnnounceURLSet[]
private final TOTorrentImpl
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createAnnounceURLSet
(URL[] urls) This method will create a new set.Gets the current sets defined for this group, 0 length if none definedlong
getUID()
void
Sets the group's URL sets to the supplied values.
-
Field Details
-
torrent
-
sets
-
uid
private volatile long uid
-
-
Constructor Details
-
TOTorrentAnnounceURLGroupImpl
-
-
Method Details
-
getUID
public long getUID()- Specified by:
getUID
in interfaceTOTorrentAnnounceURLGroup
-
addSet
-
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
Description copied from interface:TOTorrentAnnounceURLGroup
Sets the group's URL sets to the supplied values.- Specified by:
setAnnounceURLSets
in interfaceTOTorrentAnnounceURLGroup
-
createAnnounceURLSet
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
-