1.0.0

org.eclipse.soda.dk.filter
Class SimpleFilter

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

public class SimpleFilter
extends java.lang.Object
implements FilterService

The SimpleFilter class implements the FilterService interface. Simple filters are filters that contain a byte mask that is all on (a mask of 0xff) for each byte in the mask.

Version:
1.0.0
See Also:
FilterService

Constructor Summary
SimpleFilter(int index, int size)
          Constructs an SimpleFilter object using the input parameter(s).
 
Method Summary
 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

SimpleFilter

public SimpleFilter(int index,
                    int size)
Constructs an SimpleFilter object using the input parameter(s).

Parameters:
index - Starting byte index to compare parameter.
size - Size in bytes to compare parameter.
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:
FilterService.matches(org.eclipse.soda.dk.message.service.MessageService, org.eclipse.soda.dk.message.service.MessageService)

1.0.0

Copyright (c) 1999, 2007 IBM