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 TOTorrentImplprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAnnounceURLSet(URL[] urls) This method will create a new set.Gets the current sets defined for this group, 0 length if none definedlonggetUID()voidSets 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:
getUIDin interfaceTOTorrentAnnounceURLGroup
-
addSet
-
getAnnounceURLSets
Description copied from interface:TOTorrentAnnounceURLGroupGets the current sets defined for this group, 0 length if none defined- Specified by:
getAnnounceURLSetsin interfaceTOTorrentAnnounceURLGroup- Returns:
-
setAnnounceURLSets
Description copied from interface:TOTorrentAnnounceURLGroupSets the group's URL sets to the supplied values.- Specified by:
setAnnounceURLSetsin interfaceTOTorrentAnnounceURLGroup
-
createAnnounceURLSet
Description copied from interface:TOTorrentAnnounceURLGroupThis 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:
createAnnounceURLSetin interfaceTOTorrentAnnounceURLGroup- Parameters:
urls- the URLs for the new set- Returns:
- the newly created set
-