Package com.metratec.lib.inventory
Class SimpleInventory<T extends RfidTag>
- java.lang.Object
-
- com.metratec.lib.inventory.SimpleInventory<T>
-
-
Constructor Summary
Constructors Constructor Description SimpleInventory()
Create an new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>
getAddedTags()
java.util.List<T>
getInventory()
java.util.List<T>
getRemovedTags()
void
updateInventory(java.util.List<T> tags)
update the current inventory and calculate the removed and added tags
-
-
-
Constructor Detail
-
SimpleInventory
public SimpleInventory()
Create an new instance.
Usage:
update an inventory with a list of all transponder (updateInventory(List)
. Than you can get the added (getAddedTags()
and removed (getRemovedTags()
transponder.
-
-
Method Detail
-
updateInventory
public void updateInventory(java.util.List<T> tags)
update the current inventory and calculate the removed and added tags- Parameters:
tags
- new tags
-
getInventory
public java.util.List<T> getInventory()
- Returns:
- the current inventory
-
getAddedTags
public java.util.List<T> getAddedTags()
- Returns:
- the added Tags
-
getRemovedTags
public java.util.List<T> getRemovedTags()
- Returns:
- the removed Tags
-
-