Class 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 int added  
      private short[] parameters  
      private Command type  
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandInteger​(int command)
      Create a new command
    • 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 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object