| Constructor and Description |
|---|
BlockList()
Creates an empty
BlockList. |
BlockList(int initialCapacity)
Constructs an empty
BlockList with the specified initial capacity. |
BlockList(java.util.List<ai.djl.util.Pair<java.lang.String,Block>> list)
Constructs a
BlockList containing the elements of the specified list of Pairs. |
BlockList(java.util.List<java.lang.String> keys,
java.util.List<Block> values)
Constructs a
BlockList containing the elements of the specified keys and values. |
BlockList(java.util.Map<java.lang.String,Block> map)
Constructs a
BlockList containing the elements of the specified map. |
add, add, add, addAll, clear, contains, get, get, indexOf, isEmpty, iterator, keyArray, keyAt, keys, remove, remove, size, stream, subList, subList, toMap, toMap, unique, valueArray, valueAt, valuespublic BlockList()
BlockList.public BlockList(int initialCapacity)
BlockList with the specified initial capacity.initialCapacity - the initial capacity of the listjava.lang.IllegalArgumentException - if the specified initial capacity is negativepublic BlockList(java.util.List<java.lang.String> keys,
java.util.List<Block> values)
BlockList containing the elements of the specified keys and values.keys - the key list containing the elements to be placed into this BlockListvalues - the value list containing the elements to be placed into this BlockListjava.lang.IllegalArgumentException - if the keys and values size are differentpublic BlockList(java.util.List<ai.djl.util.Pair<java.lang.String,Block>> list)
BlockList containing the elements of the specified list of Pairs.list - the list containing the elements to be placed into this BlockListpublic BlockList(java.util.Map<java.lang.String,Block> map)
BlockList containing the elements of the specified map.map - the map containing keys and values