Interface StockManager
public interface StockManager
An interface to manage
StockHolders.-
Method Summary
Modifier and TypeMethodDescription@NotNull StockHoldercreateStockHolder(@NotNull UUID uuid, @NotNull String name, @NotNull StockEventCaller eventCaller) Creates an implementation ofStockHolder.@NotNull StockHoldercreateStockHolder(@NotNull UUID uuid, @NotNull String name, @NotNull StockEventCaller eventCaller, @NotNull Collection<StockData> stockData) Creates an implementation ofStockHolderwith a collection ofStockData.@NotNull PersonalStockHoldergetPersonalStockHolder(@NotNull BoxUser user) Gets thePersonalStockHolderof the specifiedBoxUser.
-
Method Details
-
getPersonalStockHolder
Gets thePersonalStockHolderof the specifiedBoxUser.- Parameters:
user- theBoxUserto getPersonalStockHolder- Returns:
- the
PersonalStockHolderof the specifiedBoxUser
-
createStockHolder
@Contract("_, _, _ -> new") @NotNull @NotNull StockHolder createStockHolder(@NotNull @NotNull UUID uuid, @NotNull @NotNull String name, @NotNull @NotNull StockEventCaller eventCaller) Creates an implementation ofStockHolder.- Parameters:
uuid- theUUIDof theStockHoldername- the name of theStockHoldereventCaller- theStockEventCallerto callStockEvents- Returns:
- a new
StockHolderinstance
-
createStockHolder
@Contract("_, _, _, _ -> new") @NotNull @NotNull StockHolder createStockHolder(@NotNull @NotNull UUID uuid, @NotNull @NotNull String name, @NotNull @NotNull StockEventCaller eventCaller, @NotNull @NotNull Collection<StockData> stockData) Creates an implementation ofStockHolderwith a collection ofStockData.- Parameters:
uuid- theUUIDof theStockHoldername- the name of theStockHoldereventCaller- theStockEventCallerto callStockEventsstockData- a collection ofStockData- Returns:
- a new
StockHolderinstance
-