Class CommandInteger
- java.lang.Object
-
- org.openstreetmap.josm.data.imagery.vectortile.mapbox.CommandInteger
-
public class CommandInteger extends java.lang.Object
An indicator for a command to be executed- Since:
- 17862
-
-
Field Summary
Fields Modifier and Type Field Description private intaddedprivate short[]parametersprivate Commandtype
-
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 voidaddParameter(long parameterInteger)Add a parametervoidaddParameter(java.lang.Number parameterInteger)Add a parametershort[]getOperations()Get the operations for the commandCommandgetType()Get the command typebooleanhasAllExpectedParameters()Get the expected parameter lengthjava.lang.StringtoString()
-
-
-
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(java.lang.Number parameterInteger)
Add a parameter- Parameters:
parameterInteger- The parameter to add (converted toshort).
-
addParameter
public void addParameter(long parameterInteger)
Add a parameter- Parameters:
parameterInteger- The parameter to add (converted toshort).- Since:
- 18695
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-