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

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


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


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

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

public class CharComparatorTest
{
    @Test
    public void testCharComparator()
    {
        CharComparator comparator = new CharComparator();

        assertEquals( 0, comparator.compare( null, null ) );
        assertEquals( 0, comparator.compare( 'a', 'a' ) );
        assertEquals( 0, comparator.compare( '\u00e9', '\u00e9' ) );
        assertEquals( 1, comparator.compare( 'a', null ) );
        assertEquals( -1, comparator.compare( 'A', 'a' ) );
        assertEquals( 1, comparator.compare( 'a', 'A' ) );
        assertEquals( -1, comparator.compare( null, 'a' ) );
        assertEquals( -1, comparator.compare( 'a', 'b' ) );
    }
View Full Code Here

TOP

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

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.