|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.Commands
public class Commands
The Commands class is a list of Command objects.
| Constructor Summary | |
|---|---|
Commands()
Default constructor that creates an empty list of commands. |
|
Commands(Commands commands)
Constructs a list of commands based on the passed in list of commands. |
|
| Method Summary | |
|---|---|
void |
add(Command command)
Adds a command to the list of commands. |
void |
add(int index,
Command command)
Adds a command at a specified position |
void |
addAll(Commands commands)
Appends all the passed in commands to the end of the list. |
void |
addAll(int index,
Commands commands)
Inserts all the commands at the specified offset. |
void |
clear()
Clears out all the commands. |
boolean |
equals(java.lang.Object commands)
Determines if two commands are equal (i.e. |
Command |
get(int index)
Gets the command at the specified position. |
java.lang.String |
getConfiglet()
Generates and returns a configlet for the commands. |
boolean |
isEmpty()
Determines if the list of commands is empty (i.e. |
java.util.Iterator |
iterator()
Returns an iterator to iterate through each of the commands. |
void |
orderDeferredCommands()
Re-orders the commands by placing any "deferred" commands at the end. |
Command |
remove(int index)
Removes the command at the specified position. |
Command |
set(int index,
Command command)
Sets the command at the specified offset. |
int |
size()
Returns the number of commands. |
java.lang.String |
toString()
Generates the configlet representation for the commands. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Commands()
public Commands(Commands commands)
commands - A list of commands.| Method Detail |
|---|
public void add(Command command)
command - The command to add.
public void add(int index,
Command command)
index - The index where the command will be addedcommand - The command to add.public void addAll(Commands commands)
commands - The list of commands to add
public void addAll(int index,
Commands commands)
index - The index where the commands will be addedcommands - The list of commands to addpublic void clear()
public Command get(int index)
index - The index for the command to get.
java.lang.IndexOutOfBoundsException - if the offset doesn't exist.public Command remove(int index)
index - The index for the command to remove.
java.lang.IndexOutOfBoundsException - if the offset doesn't exist.
public Command set(int index,
Command command)
index - The index where the commands will be addedcommand - The command to set.
java.lang.IndexOutOfBoundsException - if the offset doesn't exist.public java.lang.String getConfiglet()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object commands)
equals in class java.lang.Objectcommands - The commands to compare to.
public boolean isEmpty()
public java.util.Iterator iterator()
public int size()
public void orderDeferredCommands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||