Package jetbrains.mps.util
Class ArrayWrapper<T>
- java.lang.Object
 - 
- java.util.AbstractCollection<E>
 - 
- java.util.AbstractList<T>
 - 
- jetbrains.mps.util.ArrayWrapper<T>
 
 
 
 
- 
- All Implemented Interfaces:
 Iterable<T>,Collection<T>,List<T>
public abstract class ArrayWrapper<T> extends AbstractList<T>
 
- 
- 
Field Summary
- 
Fields inherited from class java.util.AbstractList
modCount 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedArrayWrapper() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)Tget(int index)protected abstract T[]getArray()intindexOf(Object o)protected abstract T[]newArray(int size)Tremove(int index)Tset(int index, T element)protected abstract voidsetArray(T[] newArray)intsize()Object[]toArray()<T> T[]toArray(T[] a)- 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList 
- 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toString 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray 
- 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator 
 - 
 
 - 
 
- 
- 
Method Detail
- 
get
public T get(int index)
 
- 
remove
public T remove(int index)
 
- 
indexOf
public int indexOf(Object o)
 
- 
toArray
@NotNull public Object[] toArray()
- Specified by:
 toArrayin interfaceCollection<T>- Specified by:
 toArrayin interfaceList<T>- Overrides:
 toArrayin classAbstractCollection<T>
 
- 
toArray
@NotNull public <T> T[] toArray(@NotNull T[] a)
- Specified by:
 toArrayin interfaceCollection<T>- Specified by:
 toArrayin interfaceList<T>- Overrides:
 toArrayin classAbstractCollection<T>
 
- 
size
public int size()
- Specified by:
 sizein interfaceCollection<T>- Specified by:
 sizein interfaceList<T>- Specified by:
 sizein classAbstractCollection<T>
 
- 
getArray
protected abstract T[] getArray()
 
- 
setArray
protected abstract void setArray(T[] newArray)
 
- 
newArray
protected abstract T[] newArray(int size)
 
 - 
 
 -