Remote Systems
v6.4.1

com.ibm.etools.systems.core.resources
Class SystemRemoteMarkerSet

java.lang.Object
  extended bycom.ibm.etools.systems.core.resources.SystemRemoteMarkerSet

public class SystemRemoteMarkerSet
extends Object

This class represents a set of markers.


Field Summary
static String Copyright
           
 
Constructor Summary
SystemRemoteMarkerSet()
          Constructor for SystemRemoteMarkerSet.
SystemRemoteMarkerSet(int capacity)
          Constructor for SystemRemoteMarkerSet.
 
Method Summary
 void add(ISystemRemoteMarkerSetElement element)
          Add an element to the set.
 void addAll(ISystemRemoteMarkerSetElement[] elements)
          Add multiple elements.
 boolean contains(long id)
          Returns whether the set contains an element with the given id.
 ISystemRemoteMarkerSetElement[] elements()
          Get the elements in the set as an array.
 ISystemRemoteMarkerSetElement get(long id)
          Returns the set element with the given id, or null if none is found.
 boolean isEmpty()
          Returns if the set is empty.
 void remove(ISystemRemoteMarkerSetElement element)
          Removes the given element from the set.
 void remove(long id)
          Removes an element with the given id from the set.
 void removeAll(ISystemRemoteMarkerSetElement[] elements)
          Removes all of the elements in the given array from the set.
 int size()
          Returns the number of elements in the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemRemoteMarkerSet

public SystemRemoteMarkerSet()
Constructor for SystemRemoteMarkerSet.


SystemRemoteMarkerSet

public SystemRemoteMarkerSet(int capacity)
Constructor for SystemRemoteMarkerSet.

Method Detail

add

public void add(ISystemRemoteMarkerSetElement element)
Add an element to the set.


addAll

public void addAll(ISystemRemoteMarkerSetElement[] elements)
Add multiple elements.


contains

public boolean contains(long id)
Returns whether the set contains an element with the given id.

Returns:
true if there is an element with the given id, false otherwise

elements

public ISystemRemoteMarkerSetElement[] elements()
Get the elements in the set as an array.

Returns:
an array of elements that are in the set

get

public ISystemRemoteMarkerSetElement get(long id)
Returns the set element with the given id, or null if none is found.

Returns:
the element, if found, or null

isEmpty

public boolean isEmpty()
Returns if the set is empty.

Returns:
true if the set is empty, false otherwise.

remove

public void remove(long id)
Removes an element with the given id from the set.


remove

public void remove(ISystemRemoteMarkerSetElement element)
Removes the given element from the set. Uses the element id to search for the element in the set.


removeAll

public void removeAll(ISystemRemoteMarkerSetElement[] elements)
Removes all of the elements in the given array from the set.


size

public int size()
Returns the number of elements in the set.

Returns:
the number of elements in the set.

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.