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

Examples of org.apache.directory.mavibot.btree.comparator.ShortArrayComparator.compare()


        // The first short[] is < the second
        assertEquals( -1, comparator.compare( null, new short[]
            {} ) );
        assertEquals( -1, comparator.compare( null, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( null, new short[]
            { ( short ) -1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
View Full Code Here


            {} ) );
        assertEquals( -1, comparator.compare( null, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( null, new short[]
            { ( short ) -1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) -1, ( short ) 2 } ) );
View Full Code Here

        assertEquals( -1, comparator.compare( null, new short[]
            { ( short ) -1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) -1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            { ( short ) -1, ( short ) 1 }, new short[]
            { ( short ) 1, ( short ) 1, ( short ) 2 } ) );
View Full Code Here

            {}, new short[]
            { ( short ) 1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            {}, new short[]
            { ( short ) -1, ( short ) 2 } ) );
        assertEquals( -1, comparator.compare( new short[]
            { ( short ) -1, ( short ) 1 }, new short[]
            { ( short ) 1, ( short ) 1, ( short ) 2 } ) );
        short[] array = new short[3];
        array[0] = ( short ) 1;
        array[1] = ( short ) 2;
View Full Code Here

            { ( short ) -1, ( short ) 1 }, new short[]
            { ( short ) 1, ( short ) 1, ( short ) 2 } ) );
        short[] array = new short[3];
        array[0] = ( short ) 1;
        array[1] = ( short ) 2;
        assertEquals( -1, comparator.compare( new short[]
            { ( short ) 1, ( short ) 2 }, array ) );
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.