U - the type parameterpublic class SerialArrayList<U> extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
unitSize
The Unit size.
|
| Constructor and Description |
|---|
SerialArrayList(SerialType<U> factory)
Instantiates a new Serial array list.
|
SerialArrayList(SerialType<U> factory,
Collection<U> items)
Instantiates a new Serial array list.
|
SerialArrayList(SerialType<U> factory,
int size)
Instantiates a new Serial array list.
|
SerialArrayList(SerialType<U> factory,
SerialArrayList<U>... items)
Instantiates a new Serial array list.
|
SerialArrayList(SerialType<U> factory,
U... items)
Instantiates a new Serial array list.
|
| Modifier and Type | Method and Description |
|---|---|
SerialArrayList<U> |
add(SerialArrayList<U> right)
Add serial array list.
|
int |
add(U value)
Add int.
|
int |
addAll(Collection<U> data)
Add all int.
|
void |
clear()
Clear.
|
SerialArrayList<U> |
copy()
Copy serial array list.
|
boolean |
equals(Object o) |
U |
get(int i)
Get u.
|
int |
getMemorySize()
Gets memory size.
|
int |
hashCode() |
int |
length()
Length int.
|
void |
putAll(Collection<U> data,
int startIndex)
Put all.
|
void |
putAll(SerialArrayList<U> data,
int startIndex)
Put all.
|
void |
set(int i,
U value)
Set.
|
U |
update(int i,
Function<U,U> updater)
Update u.
|
public SerialArrayList(SerialType<U> factory, SerialArrayList<U>... items)
factory - the factoryitems - the itemspublic SerialArrayList(SerialType<U> factory, Collection<U> items)
factory - the factoryitems - the itemspublic SerialArrayList(SerialType<U> factory, U... items)
factory - the factoryitems - the itemspublic SerialArrayList(SerialType<U> factory)
factory - the factorypublic SerialArrayList(SerialType<U> factory, int size)
factory - the factorysize - the sizepublic SerialArrayList<U> add(SerialArrayList<U> right)
right - the rightpublic void clear()
public int length()
public U get(int i)
i - thepublic int add(U value)
value - the valuepublic U update(int i, Function<U,U> updater)
i - theupdater - the updaterpublic void set(int i,
U value)
i - thevalue - the valuepublic int addAll(Collection<U> data)
data - the datapublic void putAll(Collection<U> data, int startIndex)
data - the datastartIndex - the start indexpublic void putAll(SerialArrayList<U> data, int startIndex)
data - the datastartIndex - the start indexpublic int getMemorySize()
public SerialArrayList<U> copy()
Copyright © 2019 SimiaCryptus Software. All rights reserved.