Class TorrentAnnounceURLListImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.torrent.TorrentAnnounceURLListImpl
-
- All Implemented Interfaces:
TorrentAnnounceURLList
public class TorrentAnnounceURLListImpl extends java.lang.Object implements TorrentAnnounceURLList
-
-
Field Summary
Fields Modifier and Type Field Description protected TorrentImpl
torrent
-
Constructor Summary
Constructors Modifier Constructor Description protected
TorrentAnnounceURLListImpl(TorrentImpl _torrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSet(java.net.URL[] urls)
Adds a set to the torrent at the end of the list.TorrentAnnounceURLListSet
create(java.net.URL[] urls)
create a new set.TorrentAnnounceURLListSet[]
getSets()
void
insertSetAtFront(java.net.URL[] urls)
Adds a set to the torrent at the front of the list.protected boolean
setAlreadyExists(java.net.URL[] urls)
void
setSets(TorrentAnnounceURLListSet[] sets)
protected void
updated()
-
-
-
Field Detail
-
torrent
protected TorrentImpl torrent
-
-
Constructor Detail
-
TorrentAnnounceURLListImpl
protected TorrentAnnounceURLListImpl(TorrentImpl _torrent)
-
-
Method Detail
-
getSets
public TorrentAnnounceURLListSet[] getSets()
- Specified by:
getSets
in interfaceTorrentAnnounceURLList
-
setSets
public void setSets(TorrentAnnounceURLListSet[] sets)
- Specified by:
setSets
in interfaceTorrentAnnounceURLList
-
create
public TorrentAnnounceURLListSet create(java.net.URL[] urls)
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
public void addSet(java.net.URL[] urls)
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
public void insertSetAtFront(java.net.URL[] urls)
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
protected boolean setAlreadyExists(java.net.URL[] urls)
-
updated
protected void updated()
-
-