toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-core
/
love.forte.simbot.utils
/
ListView
List
View
class
ListView
<
T
>
(
delegate
:
List
<
T
>
)
:
List
<
T
>
(
source
)
列表视图,对一个目标列表进行代理包装并作为一个
只读
视图使用。 此视图不可修改,但是内部元素可能会随着原始的
代理目标
的变化而变化。
Members
Members & Extensions
Constructors
List
View
Link copied to clipboard
constructor
(
delegate
:
List
<
T
>
)
Properties
size
Link copied to clipboard
open
override
val
size
:
Int
Functions
contains
Link copied to clipboard
open
operator override
fun
contains
(
element
:
T
)
:
Boolean
contains
All
Link copied to clipboard
open
override
fun
containsAll
(
elements
:
Collection
<
T
>
)
:
Boolean
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
for
Each
Link copied to clipboard
open
fun
forEach
(
p0
:
Consumer
<
in
T
>
)
get
Link copied to clipboard
open
operator override
fun
get
(
index
:
Int
)
:
T
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
index
Of
Link copied to clipboard
open
override
fun
indexOf
(
element
:
T
)
:
Int
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
T
>
last
Index
Of
Link copied to clipboard
open
override
fun
lastIndexOf
(
element
:
T
)
:
Int
list
Iterator
Link copied to clipboard
open
override
fun
listIterator
(
)
:
ListIterator
<
T
>
open
override
fun
listIterator
(
index
:
Int
)
:
ListIterator
<
T
>
parallel
Stream
Link copied to clipboard
open
fun
parallelStream
(
)
:
Stream
<
T
>
spliterator
Link copied to clipboard
open
override
fun
spliterator
(
)
:
Spliterator
<
T
>
stream
Link copied to clipboard
open
fun
stream
(
)
:
Stream
<
T
>
sub
List
Link copied to clipboard
open
override
fun
subList
(
fromIndex
:
Int
,
toIndex
:
Int
)
:
List
<
T
>
to
Array
Link copied to clipboard
open
fun
<
T
:
Any
>
toArray
(
p0
:
IntFunction
<
Array
<
T
>
>
)
:
Array
<
T
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
view
Link copied to clipboard
fun
<
T
>
List
<
T
>
.
view
(
)
:
@
UnmodifiableView
ListView
<
T
>
将目标列表实例转化为一个
列表视图
.