Class dht_routing_bucket_vector
- All Implemented Interfaces:
Iterable<dht_routing_bucket>,Collection<dht_routing_bucket>,List<dht_routing_bucket>,RandomAccess,SequencedCollection<dht_routing_bucket>
public class dht_routing_bucket_vector
extends AbstractList<dht_routing_bucket>
implements RandomAccess
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptiondht_routing_bucket_vector(int count, dht_routing_bucket value) protecteddht_routing_bucket_vector(long cPtr, boolean cMemoryOwn) dht_routing_bucket_vector(dht_routing_bucket[] initialElements) dht_routing_bucket_vector(Iterable<dht_routing_bucket> initialElements) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, dht_routing_bucket e) booleanintcapacity()voidclear()voiddelete()get(int index) protected static longbooleanisEmpty()remove(int index) protected voidremoveRange(int fromIndex, int toIndex) voidreserve(int n) set(int index, dht_routing_bucket e) intsize()protected static longMethods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
dht_routing_bucket_vector
protected dht_routing_bucket_vector(long cPtr, boolean cMemoryOwn) -
dht_routing_bucket_vector
-
dht_routing_bucket_vector
-
dht_routing_bucket_vector
public dht_routing_bucket_vector() -
dht_routing_bucket_vector
-
dht_routing_bucket_vector
-
-
Method Details
-
getCPtr
-
swigRelease
-
delete
public void delete() -
get
- Specified by:
getin interfaceList<dht_routing_bucket>- Specified by:
getin classAbstractList<dht_routing_bucket>
-
set
- Specified by:
setin interfaceList<dht_routing_bucket>- Overrides:
setin classAbstractList<dht_routing_bucket>
-
add
- Specified by:
addin interfaceCollection<dht_routing_bucket>- Specified by:
addin interfaceList<dht_routing_bucket>- Overrides:
addin classAbstractList<dht_routing_bucket>
-
add
- Specified by:
addin interfaceList<dht_routing_bucket>- Overrides:
addin classAbstractList<dht_routing_bucket>
-
remove
- Specified by:
removein interfaceList<dht_routing_bucket>- Overrides:
removein classAbstractList<dht_routing_bucket>
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRangein classAbstractList<dht_routing_bucket>
-
size
public int size()- Specified by:
sizein interfaceCollection<dht_routing_bucket>- Specified by:
sizein interfaceList<dht_routing_bucket>- Specified by:
sizein classAbstractCollection<dht_routing_bucket>
-
capacity
public int capacity() -
reserve
public void reserve(int n) -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<dht_routing_bucket>- Specified by:
isEmptyin interfaceList<dht_routing_bucket>- Overrides:
isEmptyin classAbstractCollection<dht_routing_bucket>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<dht_routing_bucket>- Specified by:
clearin interfaceList<dht_routing_bucket>- Overrides:
clearin classAbstractList<dht_routing_bucket>
-