com.zion.jbuddy.bots
Class BotTargetSet

java.lang.Object
  extended by com.zion.jbuddy.bots.BotTargetSet

public class BotTargetSet
extends Object

A set of targets.

See Also:
BotTarget

Method Summary
 void add(BotTarget target)
          Adds a target to this set.
 void add(BotTarget target, int index)
          Adds a target to this set at the specified index.
 void clear()
          Removes all targets from this set.
 Object clone()
          Returns an exact copy of this set.
 BotTarget getByCommand(String command)
          Returns the first target with the specified command, or null.
 BotTarget getByID(String id)
          Returns the target with the specified ID, or null.
 List getTargets()
          Returns a List of targets in this set.
 List getTargetsByCommand(String command)
          Returns a List of targets with the specified command.
 void remove(BotTarget target)
          Removes a target from this set.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(BotTarget target)
Adds a target to this set.


add

public void add(BotTarget target,
                int index)
Adds a target to this set at the specified index.


getByCommand

public BotTarget getByCommand(String command)
Returns the first target with the specified command, or null.


getByID

public BotTarget getByID(String id)
Returns the target with the specified ID, or null.


getTargets

public List getTargets()
Returns a List of targets in this set.


getTargetsByCommand

public List getTargetsByCommand(String command)
Returns a List of targets with the specified command.


remove

public void remove(BotTarget target)
Removes a target from this set.


clear

public void clear()
Removes all targets from this set.


clone

public Object clone()
Returns an exact copy of this set.

Overrides:
clone in class Object


JBuddy is a trademark of Zion Software, LLC in the US and other countries.
Copyright 2000-2008 Zion Software, LLC All Rights Reserved.