Class CommandInteger
java.lang.Object
org.openstreetmap.josm.data.imagery.vectortile.mapbox.CommandInteger
An indicator for a command to be executed
- Since:
- 17862
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(long parameterInteger) Add a parametervoidaddParameter(Number parameterInteger) Add a parametershort[]Get the operations for the commandgetType()Get the command typebooleanGet the expected parameter lengthtoString()
-
Field Details
-
type
-
parameters
-
added
-
-
Constructor Details
-
CommandInteger
Create a new command- Parameters:
command- the command (treated as an unsigned int)
-
-
Method Details
-
addParameter
Add a parameter- Parameters:
parameterInteger- The parameter to add (converted toshort).
-
addParameter
Add a parameter- Parameters:
parameterInteger- The parameter to add (converted toshort).- Since:
- 18695
-
getOperations
Get the operations for the command- Returns:
- The operations
-
getType
Get the command type- Returns:
- the command type
-
hasAllExpectedParameters
Get the expected parameter length- Returns:
- The expected parameter size
-
toString
-