Class CommandInteger
- java.lang.Object
-
- org.openstreetmap.josm.data.imagery.vectortile.mapbox.CommandInteger
-
public class CommandInteger extends Object
An indicator for a command to be executed- Since:
- 17862
-
-
Field Summary
Fields Modifier and Type Field Description private int
added
private short[]
parameters
private Command
type
-
Constructor Summary
Constructors Constructor Description CommandInteger(int command)
Create a new command
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(Number parameterInteger)
Add a parametershort[]
getOperations()
Get the operations for the commandCommand
getType()
Get the command typeboolean
hasAllExpectedParameters()
Get the expected parameter lengthString
toString()
-
-
-
Field Detail
-
parameters
private final short[] parameters
-
added
private int added
-
-
Constructor Detail
-
CommandInteger
public CommandInteger(int command)
Create a new command- Parameters:
command
- the command (treated as an unsigned int)
-
-
Method Detail
-
addParameter
public void addParameter(Number parameterInteger)
Add a parameter- Parameters:
parameterInteger
- The parameter to add (converted toshort
).
-
getOperations
public short[] getOperations()
Get the operations for the command- Returns:
- The operations
-
hasAllExpectedParameters
public boolean hasAllExpectedParameters()
Get the expected parameter length- Returns:
- The expected parameter size
-
-