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 TypeMethodDescriptionvoid
Adds a set to the torrent at the end of the list.create a new set.getSets()
void
insertSetAtFront
(URL[] urls) Adds a set to the torrent at the front of the list.protected boolean
setAlreadyExists
(URL[] urls) void
setSets
(TorrentAnnounceURLListSet[] sets) protected void
updated()
-
Field Details
-
torrent
-
-
Constructor Details
-
TorrentAnnounceURLListImpl
-
-
Method Details
-
getSets
- Specified by:
getSets
in interfaceTorrentAnnounceURLList
-
setSets
- Specified by:
setSets
in interfaceTorrentAnnounceURLList
-
create
Description copied from interface:TorrentAnnounceURLList
create a new set. This is NOT added to the list, you have to manually add it afterwards- Specified by:
create
in interfaceTorrentAnnounceURLList
- Returns:
-
addSet
Description copied from interface:TorrentAnnounceURLList
Adds 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:
addSet
in interfaceTorrentAnnounceURLList
-
insertSetAtFront
Description copied from interface:TorrentAnnounceURLList
Adds 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:
insertSetAtFront
in interfaceTorrentAnnounceURLList
-
setAlreadyExists
-
updated
protected void updated()
-