Class CommandInteger

    • 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 to short).
      • 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