Class ElementList<T extends AbstractDataBushElement>
java.lang.Object
org.scictrl.mp.orbitcorrect.model.optics.HashList<T>
org.scictrl.mp.orbitcorrect.model.optics.ElementList<T>
- Type Parameters:
T
- elements type
- All Implemented Interfaces:
Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,SequencedCollection<T>
This class contains
DoubleList
and therefore collection of SimpleElements. It has Inner Class to support iterator.- Author:
- igor@scictrl.com
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.ElementList
(int initialCapacity) This constructor constructsElementList
with specified initial capacity.ElementList
(int initialCapacity, float loadFactor) This constructor constructsElementList
with specified initial capacity and load factor.ElementList
(ElementList<T> el) This constructor constructsElementList
from Array of DataBushElements.ElementList
(T[] el) This constructor constructsElementList
from Array of DataBushElements. -
Method Summary
Modifier and TypeMethodDescriptionThis method return array ofDataBushInfo
elements, contained byElementList
.This method return array ofDataBushInfo
elements, contained byElementList
.Methods inherited from class org.scictrl.mp.orbitcorrect.model.optics.HashList
add, add, addAll, addAll, addAll, clear, clone, contains, contains, containsAll, get, get, indexOf, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, listIterator, listIterator, remove, remove, remove, removeAll, retainAll, set, size, sort, subList, toArray, toArray, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, spliterator
-
Constructor Details
-
ElementList
public ElementList()Default constructor. -
ElementList
This constructor constructsElementList
from Array of DataBushElements.- Parameters:
el
- an array of T[] objects- Throws:
DataBushInitializationException
- if any.
-
ElementList
This constructor constructsElementList
from Array of DataBushElements.- Parameters:
el
- aElementList
object- Throws:
DataBushInitializationException
- if any.
-
ElementList
public ElementList(int initialCapacity) This constructor constructsElementList
with specified initial capacity.- Parameters:
initialCapacity
- int
-
ElementList
This constructor constructsElementList
with specified initial capacity and load factor.- Parameters:
initialCapacity
- intloadFactor
- float- Throws:
IllegalArgumentException
- if any.
-
-
Method Details
-
getDataBushInfo
This method return array ofDataBushInfo
elements, contained byElementList
. If none is contained, it return void array whose size is 1.- Returns:
- an array of
DataBushInfo
objects
-
getRFGenerator
This method return array ofDataBushInfo
elements, contained byElementList
. If none is contained, it return void array whose size is 1.- Returns:
- an array of
RFGenerator
objects
-