Package com.biglybt.core.util
Class TorrentUtils.URLGroup
- java.lang.Object
-
- com.biglybt.core.util.TorrentUtils.URLGroup
-
- All Implemented Interfaces:
TOTorrentAnnounceURLGroup
- Enclosing class:
- TorrentUtils
private static class TorrentUtils.URLGroup extends java.lang.Object implements TOTorrentAnnounceURLGroup
-
-
Field Summary
Fields Modifier and Type Field Description private TOTorrentAnnounceURLGroup
delegate
private boolean
modified
private TOTorrentAnnounceURLSet[]
sets
private long
uid
-
Constructor Summary
Constructors Modifier Constructor Description private
URLGroup(TOTorrentAnnounceURLGroup _delegate, java.util.List<TOTorrentAnnounceURLSet> mod_sets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOTorrentAnnounceURLSet
createAnnounceURLSet(java.net.URL[] urls)
This method will create a new set.TOTorrentAnnounceURLSet[]
getAnnounceURLSets()
Gets the current sets defined for this group, 0 length if none definedlong
getUID()
protected boolean
hasBeenModified()
void
setAnnounceURLSets(TOTorrentAnnounceURLSet[] _sets)
Sets the group's URL sets to the supplied values.
-
-
-
Field Detail
-
delegate
private final TOTorrentAnnounceURLGroup delegate
-
sets
private TOTorrentAnnounceURLSet[] sets
-
modified
private boolean modified
-
uid
private long uid
-
-
Constructor Detail
-
URLGroup
private URLGroup(TOTorrentAnnounceURLGroup _delegate, java.util.List<TOTorrentAnnounceURLSet> mod_sets)
-
-
Method Detail
-
getUID
public long getUID()
- Specified by:
getUID
in interfaceTOTorrentAnnounceURLGroup
-
getAnnounceURLSets
public TOTorrentAnnounceURLSet[] 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
public void setAnnounceURLSets(TOTorrentAnnounceURLSet[] _sets)
Description copied from interface:TOTorrentAnnounceURLGroup
Sets the group's URL sets to the supplied values.- Specified by:
setAnnounceURLSets
in interfaceTOTorrentAnnounceURLGroup
-
createAnnounceURLSet
public TOTorrentAnnounceURLSet createAnnounceURLSet(java.net.URL[] urls)
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
-
hasBeenModified
protected boolean hasBeenModified()
-
-