1.0.0

org.eclipse.soda.dk.interest
Class InterestMasks

java.lang.Object
  extended by org.eclipse.soda.dk.interest.InterestMask
      extended by org.eclipse.soda.dk.interest.InterestMasks
All Implemented Interfaces:
InterestService

public class InterestMasks
extends InterestMask

Version:
1.0.0

Field Summary
static InterestService[] EMPTY_INTEREST_SERVICE_ARRAY
          Define the empty interest service array (InterestService[]) constant.
 
Fields inherited from class org.eclipse.soda.dk.interest.InterestMask
DEFAULT_MASK
 
Constructor Summary
InterestMasks()
          Constructor for InterestMasks.
InterestMasks(InterestService interestService)
          Constructs an instance of this class from the specified interest service parameter.
InterestMasks(InterestService[] interestServices)
          Constructs an instance of this class from the specified interest services parameter.
 
Method Summary
 void add(InterestService interestService)
          Add with the specified interest service parameter.
 void computeMasks()
          Compute masks.
 InterestService[] getInterestMasks()
          Gets the interest masks (InterestService[]) value.
 boolean isInterested(byte[] bytes)
          Is interested with the specified bytes parameter and return the boolean result.
 boolean isInterested(MessageService message)
          Is interested with the specified message parameter and return the boolean result.
 void remove(InterestService interestService)
          Remove with the specified interest service parameter.
 void setInterestMasks(InterestService[] interestMasks)
          Sets the interest masks value.
 
Methods inherited from class org.eclipse.soda.dk.interest.InterestMask
getCareMask, getPatternMask, setCareMask, setPatternMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_INTEREST_SERVICE_ARRAY

public static final InterestService[] EMPTY_INTEREST_SERVICE_ARRAY
Define the empty interest service array (InterestService[]) constant.

Constructor Detail

InterestMasks

public InterestMasks()
Constructor for InterestMasks.

See Also:
InterestMasks(InterestService), InterestMasks(InterestService[]), getInterestMasks(), setInterestMasks(InterestService[])

InterestMasks

public InterestMasks(InterestService interestService)
Constructs an instance of this class from the specified interest service parameter.

Parameters:
interestService - The interest service (InterestService) parameter.
See Also:
InterestMasks(), InterestMasks(InterestService[]), getInterestMasks(), setInterestMasks(InterestService[])

InterestMasks

public InterestMasks(InterestService[] interestServices)
Constructs an instance of this class from the specified interest services parameter.

Parameters:
interestServices - The interest services (InterestService[]) parameter.
See Also:
InterestMasks(), InterestMasks(InterestService), getInterestMasks(), setInterestMasks(InterestService[])
Method Detail

add

public void add(InterestService interestService)
Add with the specified interest service parameter.

Parameters:
interestService - The interest service (InterestService) parameter.

computeMasks

public void computeMasks()
Compute masks.

See Also:
InterestMasks(), InterestMasks(InterestService), InterestMasks(InterestService[]), getInterestMasks(), setInterestMasks(InterestService[])

getInterestMasks

public InterestService[] getInterestMasks()
Gets the interest masks (InterestService[]) value.

Returns:
The interest masks (InterestService[]) value.
See Also:
InterestMasks(), InterestMasks(InterestService), InterestMasks(InterestService[]), setInterestMasks(InterestService[])

isInterested

public boolean isInterested(MessageService message)
Is interested with the specified message parameter and return the boolean result.

Specified by:
isInterested in interface InterestService
Overrides:
isInterested in class InterestMask
Parameters:
message - The message (MessageService) parameter.
Returns:
Results of the is interested (boolean) value.
See Also:
isInterested(byte[])

isInterested

public boolean isInterested(byte[] bytes)
Is interested with the specified bytes parameter and return the boolean result.

Specified by:
isInterested in interface InterestService
Overrides:
isInterested in class InterestMask
Parameters:
bytes - The bytes (byte[]) parameter.
Returns:
Results of the is interested (boolean) value.
See Also:
isInterested(MessageService)

remove

public void remove(InterestService interestService)
Remove with the specified interest service parameter.

Parameters:
interestService - The interest service (InterestService) parameter.

setInterestMasks

public void setInterestMasks(InterestService[] interestMasks)
Sets the interest masks value.

Parameters:
interestMasks - The interest masks (InterestService[]) parameter.
See Also:
InterestMasks(), InterestMasks(InterestService), InterestMasks(InterestService[]), getInterestMasks()

1.0.0

Copyright (c) 1999, 2007 IBM