org.lirc.util
Class LIRCMap.Entry

java.lang.Object
  |
  +--org.lirc.util.LIRCMap.Entry
Enclosing class:
LIRCMap

protected static class LIRCMap.Entry
extends java.lang.Object

The entries in this map.


Field Summary
protected  java.lang.String button
           
protected  java.lang.String remote
           
protected  int repeat
           
protected  java.lang.String[] values
           
 
Constructor Summary
LIRCMap.Entry(java.lang.String button, java.lang.String remote, int repeat, java.lang.String[] values)
          Creates a new Entry
 
Method Summary
 boolean match(LIRCEvent e)
          Checks if this Entry matches a given button - remote combination and repeat value.
 java.lang.String nextValue()
          Returns the next value of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

button

protected final java.lang.String button

remote

protected final java.lang.String remote

repeat

protected final int repeat

values

protected final java.lang.String[] values
Constructor Detail

LIRCMap.Entry

public LIRCMap.Entry(java.lang.String button,
                     java.lang.String remote,
                     int repeat,
                     java.lang.String[] values)
Creates a new Entry
Parameters:
button - The button that this entry will match, if null all buttons will be matched
remote - The remote that this entry will match, if null all remotes will be matched
repeat - The repeat value
Method Detail

match

public boolean match(LIRCEvent e)
Checks if this Entry matches a given button - remote combination and repeat value.

nextValue

public java.lang.String nextValue()
Returns the next value of this entry.