[Java] Class FastArray
- org.codehaus.groovy.util.FastArray
- All Implemented Interfaces and Traits:
- Cloneable, Serializable
public class FastArray extends Object implements Cloneable, Serializable
Field Summary
Modifiers | Name | Description |
---|---|---|
static FastArray | EMPTY_LIST | |
int | size |
Constructor Summary
Constructor and description |
---|
FastArray
(int initialCapacity) |
FastArray
() |
FastArray
(Collection c) |
FastArray
(Object[] objects) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
add(Object o) | |
public void |
addAll(FastArray newData) | |
public void |
addAll(Object[] newData, int size) | |
public void |
addAll(List coll) | |
public void |
clear() | |
public FastArray |
copy() | |
public Object |
get(int index) | |
public Object |
get(int index) | |
public Object[] |
getArray() | |
public boolean |
isEmpty() | |
public void |
remove(int index) | |
public void |
set(int index, Object o) | |
public int |
size() | |
public int |
size() | |
public List |
toList() | |
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static final FastArray EMPTY_LIST
public int size
Constructor Detail
public FastArray(int initialCapacity)
public FastArray()
public FastArray(Collection c)
public FastArray(Object[] objects)
Method Detail
public void add(Object o)
public void addAll(FastArray newData)
public void addAll(Object[] newData, int size)
public void addAll(List coll)
public void clear()
public FastArray copy()
public Object get(int index)
public Object get(int index)
public Object[] getArray()
public boolean isEmpty()
public void remove(int index)
public void set(int index, Object o)
public int size()
public int size()
public List toList()
public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/FastArray.html