public abstract class

KeyMatcher

extends Object
java.lang.Object
   ↳ com.openxc.messages.KeyMatcher
Known Direct Subclasses

Class Overview

A KeyMatcher is used to filter incoming vehicle messages to decide which should be passed on to registered listeners. For example, a key matcher may match command responses for a particular command request.

Summary

Public Constructors
KeyMatcher()
Public Methods
boolean equals(Object obj)
static KeyMatcher getWildcardMatcher()
Return a shared instance of a KeyMatcher that matches anything.
abstract boolean matches(MessageKey key)
boolean matches(KeyedMessage other)
Return true if the message's key matches this key matcher.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyMatcher ()

Public Methods

public boolean equals (Object obj)

public static KeyMatcher getWildcardMatcher ()

Return a shared instance of a KeyMatcher that matches anything.

public abstract boolean matches (MessageKey key)

public boolean matches (KeyedMessage other)

Return true if the message's key matches this key matcher.