T - type of elements in vectorpublic class TLVector<T> extends TLObject implements List<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID |
| Constructor and Description |
|---|
TLVector() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
T t) |
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> ts) |
boolean |
addAll(int i,
Collection<? extends T> ts) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
T |
get(int i) |
int |
getClassId()
Getting TL Class identification
|
Class |
getDestClass() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int i) |
T |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
T |
set(int i,
T t) |
void |
setDestClass(Class destClass) |
int |
size() |
List<T> |
subList(int i,
int i2) |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] t1s) |
String |
toString()
Custom toString method
|
deserialize, serialize, serializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic static final int CLASS_ID
public int getClassId()
TLObjectgetClassId in class TLObjectpublic Class getDestClass()
public void setDestClass(Class destClass)
public void serializeBody(OutputStream stream) throws IOException
TLObjectserializeBody in class TLObjectstream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObjectdeserializeBody in class TLObjectstream - source streamcontext - tl contextIOExceptionpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T1> T1[] toArray(T1[] t1s)
public boolean add(T t)
public boolean remove(Object o)
public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> ts)
public boolean addAll(int i,
Collection<? extends T> ts)
public boolean removeAll(Collection<?> objects)
public boolean retainAll(Collection<?> objects)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int i)
listIterator in interface List<T>Copyright © 2017. All rights reserved.