Class MenuChangeCommand
java.lang.Object
com.thecoderscorner.menu.remote.commands.MenuChangeCommand
- All Implemented Interfaces:
MenuCommand
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMenuChangeCommand(CorrelationId correlationId, int itemId, MenuChangeCommand.ChangeType changeType, String value) MenuChangeCommand(CorrelationId correlation, int itemId, List<String> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuChangeCommand.ChangeTypechangeTypeFromInt(int changeType) static intchangeTypeToInt(MenuChangeCommand.ChangeType changeType) booleanThe type of message received.intgetValue()inthashCode()toString()
-
Constructor Details
-
Method Details
-
getCommandType
Description copied from interface:MenuCommandThe type of message received.- Specified by:
getCommandTypein interfaceMenuCommand- Returns:
- the command type
-
getMenuItemId
public int getMenuItemId() -
getCorrelationId
-
getValue
-
getValues
-
getChangeType
-
changeTypeFromInt
-
toString
-
equals
-
hashCode
public int hashCode()
-