Class StandardRequestSystemDeliveryManJobDataStore
java.lang.Object
com.minecolonies.core.colony.requestsystem.data.StandardRequestSystemDeliveryManJobDataStore
- All Implemented Interfaces:
IDataStore,IRequestSystemDeliveryManJobDataStore
public class StandardRequestSystemDeliveryManJobDataStore
extends Object
implements IRequestSystemDeliveryManJobDataStore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionStandardRequestSystemDeliveryManJobDataStore(IToken<?> id, LinkedList<IToken<?>> queue, Set<IToken<?>> ongoingDeliveries) -
Method Summary
Modifier and TypeMethodDescriptionIToken<?>getId()Method to get theITokenused to identify thisIDataStore.Get a list of all the currently ongoing deliveries.LinkedList<IToken<?>>getQueue()Get the list of all scheduled deliveries.voidMethod to set theITokenused to identify thisIDataStore.
-
Constructor Details
-
StandardRequestSystemDeliveryManJobDataStore
public StandardRequestSystemDeliveryManJobDataStore(IToken<?> id, LinkedList<IToken<?>> queue, Set<IToken<?>> ongoingDeliveries) -
StandardRequestSystemDeliveryManJobDataStore
public StandardRequestSystemDeliveryManJobDataStore()
-
-
Method Details
-
getQueue
Description copied from interface:IRequestSystemDeliveryManJobDataStoreGet the list of all scheduled deliveries.- Specified by:
getQueuein interfaceIRequestSystemDeliveryManJobDataStore- Returns:
- the ordered list.
-
getOngoingDeliveries
Description copied from interface:IRequestSystemDeliveryManJobDataStoreGet a list of all the currently ongoing deliveries.- Specified by:
getOngoingDeliveriesin interfaceIRequestSystemDeliveryManJobDataStore- Returns:
- the list.
-
getId
Description copied from interface:IDataStoreMethod to get theITokenused to identify thisIDataStore.- Specified by:
getIdin interfaceIDataStore- Returns:
- The
ITokenfor thisIDataStore
-
setId
Description copied from interface:IDataStoreMethod to set theITokenused to identify thisIDataStore. Used during creation to setup the initial Id.- Specified by:
setIdin interfaceIDataStore- Parameters:
id- The new Id.
-