package com.example.smart.ui.exclude.bean import java.lang.RuntimeException /** * @author: dai hang * @data: 2024/1/29 11:10 * @description: A list contains all selected items, include all child trees */ class SelectArrayList : ArrayList() { /** * Clear is not allow,because it container other child selected trees */ override fun clear() { throw RuntimeException("Clear is not allow") } override fun removeAll(elements: Collection): Boolean { throw RuntimeException("Remove all is not allow") } }