2009-01-09 1.2.0

org.eclipse.soda.dk.filter
Class Filter

java.lang.Object
  extended by org.eclipse.soda.dk.filter.Filter
All Implemented Interfaces:
FilterService

public class Filter
extends java.lang.Object
implements FilterService

The Filter class implements the FilterService interface.

Since:
1.0
Version:
1.2.0
See Also:
FilterService

Constructor Summary
Filter(byte[] mask)
          Constructs an Filter object using the input parameter(s).
 
Method Summary
 boolean matches(byte[] bytes0, byte[] bytes1)
          Matches with the specified bytes0 and bytes1 parameters and return the boolean result.
 boolean matches(MessageService message0, MessageService message1)
          Perform the matches method and return the boolean result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(byte[] mask)
Constructs an Filter object using the input parameter(s).

Parameters:
mask - byte[]
Method Detail

matches

public boolean matches(MessageService message0,
                       MessageService message1)
Perform the matches method and return the boolean result.

Specified by:
matches in interface FilterService
Parameters:
message0 - org.eclipse.soda.dk.message.service.MessageService
message1 - org.eclipse.soda.dk.message.service.MessageService
Returns:
Results of the matches (boolean) value.
See Also:
matches(byte[],byte[])

matches

public boolean matches(byte[] bytes0,
                       byte[] bytes1)
Matches with the specified bytes0 and bytes1 parameters and return the boolean result.

Specified by:
matches in interface FilterService
Parameters:
bytes0 - The bytes0 (byte[]) parameter.
bytes1 - The bytes1 (byte[]) parameter.
Returns:
Results of the matches (boolean) value.
See Also:
matches(MessageService,MessageService)

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.