Interface StockManager
public interface StockManager
An interface to manage
StockHolder
s.-
Method Summary
Modifier and TypeMethodDescription@NotNull StockHolder
createStockHolder
(@NotNull UUID uuid, @NotNull String name, @NotNull StockEventCaller eventCaller) Creates an implementation ofStockHolder
.@NotNull StockHolder
createStockHolder
(@NotNull UUID uuid, @NotNull String name, @NotNull StockEventCaller eventCaller, @NotNull Collection<StockData> stockData) Creates an implementation ofStockHolder
with a collection ofStockData
.@NotNull PersonalStockHolder
getPersonalStockHolder
(@NotNull BoxUser user) Gets thePersonalStockHolder
of the specifiedBoxUser
.
-
Method Details
-
getPersonalStockHolder
Gets thePersonalStockHolder
of the specifiedBoxUser
.- Parameters:
user
- theBoxUser
to getPersonalStockHolder
- Returns:
- the
PersonalStockHolder
of 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
- theUUID
of theStockHolder
name
- the name of theStockHolder
eventCaller
- theStockEventCaller
to callStockEvent
s- Returns:
- a new
StockHolder
instance
-
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 ofStockHolder
with a collection ofStockData
.- Parameters:
uuid
- theUUID
of theStockHolder
name
- the name of theStockHolder
eventCaller
- theStockEventCaller
to callStockEvent
sstockData
- a collection ofStockData
- Returns:
- a new
StockHolder
instance
-