Interface EtfCollection<V>
-
- All Superinterfaces:
java.lang.Iterable<V>
- All Known Subinterfaces:
EtsCollection
public interface EtfCollection<V> extends java.lang.Iterable<V>
Represents an ETF response with a collection of items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<V>
itemById(java.lang.String eid)
Get an item by its eidjava.util.Optional<V>
itemByLabel(java.lang.String label)
Get an item by its labeljava.util.Collection<? extends ItemMetadata>
metadata()
Returns the metadata of the items in the collectiondefault int
size()
Returns the size of this collection
-
-
-
Method Detail
-
metadata
java.util.Collection<? extends ItemMetadata> metadata()
Returns the metadata of the items in the collection- Returns:
- collection of metadata
-
itemById
java.util.Optional<V> itemById(java.lang.String eid)
Get an item by its eid- Parameters:
eid
- EID of the item- Returns:
- the item
-
itemByLabel
java.util.Optional<V> itemByLabel(java.lang.String label)
Get an item by its label- Parameters:
label
- label of the item- Returns:
- the item
-
size
default int size()
Returns the size of this collection- Returns:
- size of the collection
-
-