T
- The type of metadata to store.public class MetadataList<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.util.List<T>> |
data |
Constructor and Description |
---|
MetadataList() |
MetadataList(int size1)
Construct a list containing a specified number of primary elements.
|
MetadataList(int[] sizes)
Construct a list containing a specified number of primary and secondary elements.
|
MetadataList(int size1,
int size2)
Construct a list containing a specified number of primary elements and a fixed number of secondary elements.
|
MetadataList(MetadataList<T> copy)
Copy a list.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a empty primary array element.
|
void |
add(int size2)
Add a empty primary array element.
|
void |
add(int i1,
T value)
Add a secondary array element to the specified primary array
|
void |
add(java.util.List<T> values)
Add a new primary element containing the specified values.
|
void |
add(T value)
Add a new primary element containing a single specified value.
|
void |
clear()
Clear the array.
|
void |
clear(int i1)
Clear the specified primary array element.
|
T |
get(int i1,
int i2)
Get the array element for the specified indexes.
|
void |
set(int i1,
int i2,
T value)
Set the array element for the specified indexes.
|
int |
size()
Get the size of the array (number of primary array elements).
|
int |
size(int i1)
Get the size of the specified primary array element (number of secondary array elements).
|
int[] |
sizes()
Get the sizes of all primary array elements.
|
protected java.util.List<java.util.List<T>> data
public MetadataList()
public MetadataList(MetadataList<T> copy)
public MetadataList(int size1)
size1
- The number of primary list elementspublic MetadataList(int size1, int size2)
size1
- The number of primary list elementssize2
- The number of secondary level list elementspublic MetadataList(int[] sizes)
sizes
- The number of primary and secondary list elements; the array elements are the secondary element sizes.public T get(int i1, int i2)
i1
- The primary array indexi2
- The secondary array indexpublic void set(int i1, int i2, T value)
i1
- The primary array indexi2
- The secondary array indexvalue
- The element to setpublic void add()
public void add(int size2)
public void add(int i1, T value)
i1
- The primary array indexvalue
- The element to setpublic void add(T value)
value
- The value to addpublic void add(java.util.List<T> values)
values
- The values to addpublic void clear()
public void clear(int i1)
i1
- The primary array indexpublic int size()
public int size(int i1)
i1
- The primary array indexpublic int[] sizes()
Copyright © 2020 Open Microscopy Environment