public class NotificationCommands extends Object implements Serializable
Constructor and Description |
---|
NotificationCommands() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command vCommand) |
void |
addCommand(int index,
Command vCommand) |
Enumeration<Command> |
enumerateCommand()
Method enumerateCommand.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Command[] |
getCommand()
Method getCommand.Returns the contents of the collection in an Array.
|
Command |
getCommand(int index)
Method getCommand.
|
List<Command> |
getCommandCollection()
Method getCommandCollection.Returns a reference to 'commandList'.
|
int |
getCommandCount()
Method getCommandCount.
|
Header |
getHeader()
Returns the value of field 'header'.
|
int |
hashCode()
Method hashCode.
|
Iterator<Command> |
iterateCommand()
Method iterateCommand.
|
void |
removeAllCommand() |
boolean |
removeCommand(Command vCommand)
Method removeCommand.
|
Command |
removeCommandAt(int index)
Method removeCommandAt.
|
void |
setCommand(Command[] vCommandArray) |
void |
setCommand(int index,
Command vCommand) |
void |
setCommand(List<Command> vCommandList)
Sets the value of 'commandList' by copying the given Vector.
|
void |
setCommandCollection(List<Command> commandList)
Deprecated.
|
void |
setHeader(Header header)
Sets the value of field 'header'.
|
public void addCommand(Command vCommand) throws IndexOutOfBoundsException
vCommand
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void addCommand(int index, Command vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Enumeration<Command> enumerateCommand()
public boolean equals(Object obj)
public Command getCommand(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Command[] getCommand()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Command> getCommandCollection()
public int getCommandCount()
public Header getHeader()
public int hashCode()
public Iterator<Command> iterateCommand()
public void removeAllCommand()
public boolean removeCommand(Command vCommand)
vCommand
- public Command removeCommandAt(int index)
index
- public void setCommand(int index, Command vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void setCommand(Command[] vCommandArray)
vCommandArray
- public void setCommand(List<Command> vCommandList)
vCommandList
- the Vector to copy.public void setCommandCollection(List<Command> commandList)
commandList
- the Vector to set.public void setHeader(Header header)
header
- the value of field 'header'.Copyright © 2017. All rights reserved.