Class TorrentAnnounceURLListImpl
java.lang.Object
com.biglybt.pifimpl.local.torrent.TorrentAnnounceURLListImpl
- All Implemented Interfaces:
TorrentAnnounceURLList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a set to the torrent at the end of the list.create a new set.getSets()voidinsertSetAtFront(URL[] urls) Adds a set to the torrent at the front of the list.protected booleansetAlreadyExists(URL[] urls) voidsetSets(TorrentAnnounceURLListSet[] sets) protected voidupdated()
-
Field Details
-
torrent
-
-
Constructor Details
-
TorrentAnnounceURLListImpl
-
-
Method Details
-
getSets
- Specified by:
getSetsin interfaceTorrentAnnounceURLList
-
setSets
- Specified by:
setSetsin interfaceTorrentAnnounceURLList
-
create
Description copied from interface:TorrentAnnounceURLListcreate a new set. This is NOT added to the list, you have to manually add it afterwards- Specified by:
createin interfaceTorrentAnnounceURLList- Parameters:
urls-- Returns:
-
addSet
Description copied from interface:TorrentAnnounceURLListAdds a set to the torrent at the end of the list. If the torrent currently has NO announcelist entries then the existing "announce-url" is also added to the set as the first entry. To avoid this behaviour manipulate the sets yourself and use setSets Duplicate set entries are ignored- Specified by:
addSetin interfaceTorrentAnnounceURLList- Parameters:
urls-
-
insertSetAtFront
Description copied from interface:TorrentAnnounceURLListAdds a set to the torrent at the front of the list. If the torrent currently has NO announcelist entries then the existing "announce-url" is also added to the set as the first entry. To avoid this behaviour manipulate the sets yourself and use setSets Duplicate set entries are ignored- Specified by:
insertSetAtFrontin interfaceTorrentAnnounceURLList- Parameters:
urls-
-
setAlreadyExists
-
updated
protected void updated()
-