public class BencodedList extends AbstractBencodedValue
| Constructor and Description |
|---|
BencodedList()
Creates a new empty bencoded list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IBencodedValue value)
Adds a value to the bencoded list.
|
List<IBencodedValue> |
asList() |
IBencodedValue |
get(int index)
Gets an item from the bencoded list.
|
String |
serialize() |
int |
size() |
asBigInteger, asLong, asMap, asStringpublic IBencodedValue get(int index)
index - The index to get the item at.public void add(IBencodedValue value)
value - The value to add.public int size()
public List<IBencodedValue> asList()
asList in interface IBencodedValueasList in class AbstractBencodedValuepublic String serialize()
Copyright © 2016. All rights reserved.