Package org.apache.directory.mavibot.btree.comparator

Examples of org.apache.directory.mavibot.btree.comparator.BooleanComparator


    /**
     * Create a new instance of BooleanSerializer
     */
    public BooleanSerializer()
    {
        super( new BooleanComparator() );
    }
View Full Code Here


    /**
     * Create a new instance of BooleanSerializer
     */
    public BooleanSerializer()
    {
        super( new BooleanComparator() );
    }
View Full Code Here

    /**
     * Create a new instance of BooleanSerializer
     */
    public BooleanSerializer()
    {
        super( new BooleanComparator() );
    }
View Full Code Here

public class BooleanComparatorTest
{
    @Test
    public void testBooleanComparator()
    {
        BooleanComparator comparator = new BooleanComparator();

        assertEquals( 0, comparator.compare( null, null ) );
        assertEquals( 0, comparator.compare( true, true ) );
        assertEquals( 0, comparator.compare( false, false ) );
        assertEquals( 1, comparator.compare( false, null ) );
        assertEquals( 1, comparator.compare( true, null ) );
        assertEquals( 1, comparator.compare( true, false ) );
        assertEquals( -1, comparator.compare( null, false ) );
        assertEquals( -1, comparator.compare( null, true ) );
        assertEquals( -1, comparator.compare( false, true ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.mavibot.btree.comparator.BooleanComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.