public class AnnounceKey extends Object
Constructor and Description |
---|
AnnounceKey(List<List<String>> trackerUrls)
Create a multi-tracker announce key
See BEP-12: Multitracker Metadata Extension for more details
|
AnnounceKey(String trackerUrl)
Create a single-tracker announce key
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getTrackerUrl() |
List<List<String>> |
getTrackerUrls() |
int |
hashCode() |
boolean |
isMultiKey() |
String |
toString() |
public AnnounceKey(String trackerUrl)
public AnnounceKey(List<List<String>> trackerUrls)
trackerUrls
- List of tiers of trackers (first list contains primary trackers,
subsequent lists contain backup trackers)public boolean isMultiKey()
public String getTrackerUrl()
isMultiKey()
is false, null otherwisepublic List<List<String>> getTrackerUrls()
isMultiKey()
is true, null otherwiseCopyright © 2016–2021. All rights reserved.