public class WGStructEntryList extends java.util.LinkedHashSet<WGStructEntry>
Modifier and Type | Method and Description |
---|---|
java.util.List<WGStructEntry> |
asList()
Returns a basic
List containing the struct entries in their order. |
static WGStructEntryList |
create()
Creates an empty struct entry list
|
static WGStructEntryList |
create(java.util.List<WGStructEntry> list)
Create a WGStructEntryList from an ordinary java.util.List filled with WGStructEntry objects
|
WGStructEntry |
getByIndex(int idx)
Retrieve a struct entry by it's index.
|
WGStructEntry |
getByPosition(double pos)
Retrieves a struct entry by it's position number.
|
int |
getIndexOfEntry(WGStructEntry testEntry)
Returns the siblings index of the given entry in the siblings list.
|
add, clear, clone, contains, isEmpty, iterator, remove, size
public static WGStructEntryList create(java.util.List<WGStructEntry> list)
list
- public static WGStructEntryList create()
public WGStructEntry getByPosition(double pos) throws WGAPIException
pos
- WGAPIException
public WGStructEntry getByIndex(int idx) throws WGAPIException
idx
- WGAPIException
public int getIndexOfEntry(WGStructEntry testEntry) throws WGAPIException
testEntry
- WGAPIException
public java.util.List<WGStructEntry> asList() throws WGAPIException
List
containing the struct entries in their order. The list is unmodifiable.WGAPIException