toggle menu
Android-IMKit-SDK
5.12.0
io.rong.imkit
switch theme
search in API
Android-IMKit-SDK
/
io.rong.imkit.widget.cache
/
MessageList
Message
List
public
class
MessageList
<
T
>
extends
ArrayList
<
E
>
消息展示列表专用 list 当达到存储最大值后,底部插入新数据时,顶部数据丢弃, 顶部插入数据时,不考虑最大值,底部数据保留。
Members
Constructors
Message
List
Link copied to clipboard
public
void
MessageList
(
int maxCount
,
int initialCapacity
)
public
void
MessageList
(
int maxCount
)
public
void
MessageList
(
int maxCount
,
Collection
<
? extends
T
>
c
)
Functions
add
Link copied to clipboard
public
boolean
add
(
T
t
)
public
void
add
(
int index
,
T
element
)
add
All
Link copied to clipboard
public
boolean
addAll
(
Collection
<
? extends
T
>
c
)
public
boolean
addAll
(
int index
,
Collection
<
? extends
T
>
c
)
Inherited functions
clear
Link copied to clipboard
public
void
clear
(
)
clone
Link copied to clipboard
public
Object
clone
(
)
contains
Link copied to clipboard
public
boolean
contains
(
Object
o
)
contains
All
Link copied to clipboard
public
abstract
boolean
containsAll
(
Collection
<
? extends
Object
>
p
)
copy
Of
Link copied to clipboard
public
static
List
<
E
>
copyOf
<
E
>
(
Collection
<
? extends
E
>
coll
)
ensure
Capacity
Link copied to clipboard
public
void
ensureCapacity
(
int minCapacity
)
equals
Link copied to clipboard
public
boolean
equals
(
Object
o
)
for
Each
Link copied to clipboard
public
void
forEach
(
Consumer
<
? super
E
>
action
)
get
Link copied to clipboard
public
E
get
(
int index
)
hash
Code
Link copied to clipboard
public
int
hashCode
(
)
index
Of
Link copied to clipboard
public
int
indexOf
(
Object
o
)
is
Empty
Link copied to clipboard
public
boolean
isEmpty
(
)
iterator
Link copied to clipboard
public
abstract
Iterator
<
T
>
iterator
(
)
public
Iterator
<
E
>
iterator
(
)
last
Index
Of
Link copied to clipboard
public
int
lastIndexOf
(
Object
o
)
list
Iterator
Link copied to clipboard
public
ListIterator
<
E
>
listIterator
(
int index
)
of
Link copied to clipboard
public
static
List
<
E
>
of
<
E
>
(
)
parallel
Stream
Link copied to clipboard
public
Stream
<
E
>
parallelStream
(
)
remove
Link copied to clipboard
public
E
remove
(
int index
)
public
boolean
remove
(
Object
o
)
remove
All
Link copied to clipboard
public
boolean
removeAll
(
Collection
<
? extends
Object
>
c
)
remove
If
Link copied to clipboard
public
boolean
removeIf
(
Predicate
<
? super
E
>
filter
)
replace
All
Link copied to clipboard
public
void
replaceAll
(
UnaryOperator
<
E
>
operator
)
retain
All
Link copied to clipboard
public
boolean
retainAll
(
Collection
<
? extends
Object
>
c
)
set
Link copied to clipboard
public
E
set
(
int index
,
E
element
)
size
Link copied to clipboard
public
int
size
(
)
sort
Link copied to clipboard
public
void
sort
(
Comparator
<
? super
E
>
c
)
spliterator
Link copied to clipboard
public
Spliterator
<
T
>
spliterator
(
)
public
Spliterator
<
E
>
spliterator
(
)
stream
Link copied to clipboard
public
Stream
<
E
>
stream
(
)
sub
List
Link copied to clipboard
public
List
<
E
>
subList
(
int fromIndex
,
int toIndex
)
to
Array
Link copied to clipboard
public
Array
<
Object
>
toArray
(
)
public
Array
<
T
>
toArray
<
T
>
(
Array
<
T
>
a
)
to
String
Link copied to clipboard
public
String
toString
(
)
trim
To
Size
Link copied to clipboard
public
void
trimToSize
(
)