com.jrockit.mc.flightrecorder.provider
Class FeatureSet

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.FeatureSet
All Implemented Interfaces:
IFeatureSet

public final class FeatureSet
extends java.lang.Object
implements IFeatureSet

A feature set contains events with a certain characteristic.

Author:
Erik Gahlin

Constructor Summary
FeatureSet(IRepository repository, int mask)
           
 
Method Summary
 void add(IEvent event)
          Adds an event to the feature set.
 void clear()
          Removes all the events from the IFeatureSet
 boolean contains(IEvent event)
          Checks if the event belongs to the IFeatureSet.
 java.lang.String getIdentifier()
          Returns a unique identifier for the set.
 void remove(IEvent event)
          Removes an event from the feature set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureSet

public FeatureSet(IRepository repository,
                  int mask)
Method Detail

add

public void add(IEvent event)
Description copied from interface: IFeatureSet
Adds an event to the feature set.

Specified by:
add in interface IFeatureSet

remove

public void remove(IEvent event)
Description copied from interface: IFeatureSet
Removes an event from the feature set.

Specified by:
remove in interface IFeatureSet

contains

public boolean contains(IEvent event)
Description copied from interface: IFeatureSet
Checks if the event belongs to the IFeatureSet.

Specified by:
contains in interface IFeatureSet
Parameters:
event - the event to examine
Returns:
true if the event is in the set, false otherwise.

clear

public void clear()
Description copied from interface: IFeatureSet
Removes all the events from the IFeatureSet

Specified by:
clear in interface IFeatureSet

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: IFeatureSet
Returns a unique identifier for the set.

Specified by:
getIdentifier in interface IFeatureSet
Returns:
the identifier.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.