RSE
Release 1.0

org.eclipse.rse.files.ui.resources
Class SystemRemoteMarkerSet

java.lang.Object
  extended byorg.eclipse.rse.files.ui.resources.SystemRemoteMarkerSet

public class SystemRemoteMarkerSet
extends Object

This class represents a set of markers.


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
 

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.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.