public boolean HasKeyOp ( Integer that ) { CBORObject thisObj = get ( KeyKeys . Key_Ops ) ; boolean result ; if ( that == null ) { result = ( thisObj == null ) ; } else { result = false ; if ( thisObj . getType ( ) == CBORType . Number ) { if ( thisObj . AsInt32 ( ) == that ) { result = true ; } } else if ( thisObj . getType ( ) == CBORType . Array ) { for ( int i = 0 ; i < thisObj . size ( ) ; i ++ ) { if ( ( thisObj . get ( i ) . getType ( ) == CBORType . Number ) && ( thisObj . get ( i ) . AsInt32 ( ) == that ) ) { result = true ; break ; } } } } return result ; }
Compares the key s assigned key operations with the provided value indicating if the provided value was found in the key operation values assigned to the key .