RefactoringUtil.java 文件源码

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

项目:SPLevo 作者:
/**
 * Checks whether a given container has a class, interface or enumeration with a given
 * name.
 * 
 * @param container
 *            The container.
 * @param name
 *            The {@link String} name.
 * @return <code>true</code> if such an entity was found; <code>false</code> otherwise.
 */
public static boolean containsClassInterfaceOrEnumWithName(Commentable container, String name) {
    Switch<Boolean> switcher = new ContainerHasConflictingNameSwitch(name);
    return switcher.doSwitch(container);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号