BasicPlayer.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:BasicPlayer 作者:
private static Control findControl(Type type, Control[] controls) {
    if (controls == null || controls.length == 0) return null;
    for (int i = 0; i < controls.length; i++) {
        Control control = controls[i];
        if (control.getType().equals(type)) return control;
        if (control instanceof CompoundControl) {
            CompoundControl compoundControl = (CompoundControl) control;
            Control member = findControl(type, compoundControl.getMemberControls());
            if (member != null) return member;
        }
    }
    return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号