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