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")
|
}
|
}
|