java版 strcmp函数

private static boolean strcmp( Message msg ) {
if( msg == null ){
            // No message indicates that the message queue is quitting.
            return false;
        }
if( msg.target.getClass().getName().length() < 30 ){
            return false;
}
        if( "com.android.launcher2.Launcher$1".substring(0, 30).equals(msg.target.getClass().getName().substring(0, 30)) == true ){
            return true;                                                                                            
}else{
            return false;
}  
}

你可能感兴趣的:(java版 strcmp函数)