Interface ValidatorHost.Validator
- Enclosing interface:
- ValidatorHost
public static interface ValidatorHost.Validator
A commodities validator.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(@NotNull CommodityContainer commodities, @Nullable Point location) Validate a list of commodities.
-
Method Details
-
accept
boolean accept(@NotNull @NotNull CommodityContainer commodities, @Nullable @Nullable Point location) Validate a list of commodities.- Parameters:
commodities
- the list of commodities to validatelocation
- a Point indicating the Pointer's current location in the Component's coordinates. Location may be null if the transfer has been started automatically.- Returns:
- true on valid otherwise false
- Since:
- 5.0
-