@Override public AnyValue value( int position ) { return Values.booleanValue( booleanValue( position ) ); }
public static int compareBooleanArrays( BooleanArray a, BooleanArray b ) { int i = 0; int x = 0; int length = Math.min( a.length(), b.length() ); while ( x == 0 && i < length ) { x = Boolean.compare( a.booleanValue( i ), b.booleanValue( i ) ); i++; } if ( x == 0 ) { x = a.length() - b.length(); } return x; } }
@Override public AnyValue value( int position ) { return Values.booleanValue( booleanValue( position ) ); }
public static int compareBooleanArrays( BooleanArray a, BooleanArray b ) { int i = 0; int x = 0; int length = Math.min( a.length(), b.length() ); while ( x == 0 && i < length ) { x = Boolean.compare( a.booleanValue( i ), b.booleanValue( i ) ); i++; } if ( x == 0 ) { x = a.length() - b.length(); } return x; } }