dfh.treepath
Class TrueTest<N>

java.lang.Object
  extended by dfh.treepath.TrueTest<N>
Type Parameters:
N - node type
All Implemented Interfaces:
NodeTest<N>, Serializable

public class TrueTest<N>
extends Object
implements NodeTest<N>

NodeTest that always returns true. Implements wildcard expression -- "*".

Author:
David F. Houghton - May 8, 2012
See Also:
Serialized Form

Method Summary
 boolean passes(N n, Index<N> i)
          Tests the node
static
<N> TrueTest<N>
test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

test

public static final <N> TrueTest<N> test()

passes

public boolean passes(N n,
                      Index<N> i)
Description copied from interface: NodeTest
Tests the node

Specified by:
passes in interface NodeTest<N>
Parameters:
n - context node
i - tree index
Returns:
whether the node passes the test