18034727885
2026-06-26 253f680fb9666751e0f9a8e5e8f2f9e3eb1894e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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<T> : ArrayList<T>() {
 
    /**
     * 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<T>): Boolean {
        throw RuntimeException("Remove all is not allow")
    }
}