jfreerails.world.cargo
Interface CargoBundle

All Known Implementing Classes:
ImmutableCargoBundle, MutableCargoBundle

public interface CargoBundle


Method Summary
 java.util.Iterator<CargoBatch> cargoBatchIterator()
          Note, calling hasNext() or next() on the returned iterator throws a ConcurrentModificationException if this CargoBundle has changed since the iterator was aquired.
 boolean contains(CargoBatch cb)
           
 int getAmount(CargoBatch cb)
           
 int getAmount(int cargoType)
           
 int size()
           
 

Method Detail

cargoBatchIterator

java.util.Iterator<CargoBatch> cargoBatchIterator()
Note, calling hasNext() or next() on the returned iterator throws a ConcurrentModificationException if this CargoBundle has changed since the iterator was aquired.


contains

boolean contains(CargoBatch cb)

getAmount

int getAmount(CargoBatch cb)

getAmount

int getAmount(int cargoType)

size

int size()