ALBPM Process API

fuego.papi.collections
Class ProcessIdSet

java.lang.Object
  extended by fuego.papi.collections.ProcessIdSet
All Implemented Interfaces:
ElementIdSet<String>, Serializable, Iterable<String>

public class ProcessIdSet
extends Object
implements ElementIdSet<String>

This class represents a set of processes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface fuego.papi.collections.ElementIdSet
SEPARATOR
 
Method Summary
 ProcessIdSet add(Process process)
          Adds the Id of the process to the set
 ProcessIdSet add(String processId)
          Adds the specified element to the set if not present.
 ProcessIdSet addAll(ElementIdSet<String> processIds)
          Add all ids to the Set.
 ProcessIdSet addAll(List<String> processIds)
          Adds all process Id's to the set
 ProcessIdSet addAll(ProcessList processes)
          Adds all process Id's to the set
 ProcessIdSet addAll(String... processIds)
          Adds process Id's to the set
 boolean contains(String elementId)
          Returns true if this set contains the specified identification.
static ProcessIdSet create()
          Creates new ProcessIdSet
 boolean isEmpty()
           
 Iterator<String> iterator()
           
 int size()
           
 String[] toArray()
          Returns an array containing all of the elements in this set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ProcessIdSet create()
Creates new ProcessIdSet


add

public ProcessIdSet add(String processId)
Description copied from interface: ElementIdSet
Adds the specified element to the set if not present.

Specified by:
add in interface ElementIdSet<String>
Parameters:
processId - Identification to add.

size

public int size()
Specified by:
size in interface ElementIdSet<String>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ElementIdSet<String>

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

add

public ProcessIdSet add(Process process)
Adds the Id of the process to the set

Parameters:
process - Process to add.

addAll

public ProcessIdSet addAll(String... processIds)
Adds process Id's to the set

Specified by:
addAll in interface ElementIdSet<String>
Parameters:
processIds - Processes identification to add.

addAll

public ProcessIdSet addAll(List<String> processIds)
Adds all process Id's to the set

Parameters:
processIds - Processes identification to add.

addAll

public ProcessIdSet addAll(ProcessList processes)
Adds all process Id's to the set

Parameters:
processes - Processes which identification will be added.

addAll

public ProcessIdSet addAll(ElementIdSet<String> processIds)
Description copied from interface: ElementIdSet
Add all ids to the Set.

Specified by:
addAll in interface ElementIdSet<String>
Parameters:
processIds - Identification Set to add.

contains

public boolean contains(String elementId)
Description copied from interface: ElementIdSet
Returns true if this set contains the specified identification.

Specified by:
contains in interface ElementIdSet<String>
Parameters:
elementId - Identification whose presence in this set is to be tested.
Returns:
true if this set contains the specified identification.

toArray

public String[] toArray()
Returns an array containing all of the elements in this set. Obeys the general contract of the Collection.toArray method.

Specified by:
toArray in interface ElementIdSet<String>
Returns:
an array containing all of the elements in this set.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved