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 Details

  • Constructor Details

    • CommandInteger

      public CommandInteger(int command)
      Create a new command
      Parameters:
      command - the command (treated as an unsigned int)
  • Method Details

    • addParameter

      public void addParameter(Number parameterInteger)
      Add a parameter
      Parameters:
      parameterInteger - The parameter to add (converted to short).
    • addParameter

      public void addParameter(long parameterInteger)
      Add a parameter
      Parameters:
      parameterInteger - The parameter to add (converted to short).
      Since:
      18695
    • getOperations

      public short[] getOperations()
      Get the operations for the command
      Returns:
      The operations
    • getType

      public Command getType()
      Get the command type
      Returns:
      the command type
    • hasAllExpectedParameters

      public boolean hasAllExpectedParameters()
      Get the expected parameter length
      Returns:
      The expected parameter size
    • toString

      public String toString()
      Overrides:
      toString in class Object