public class InfoPlusFiles extends InfoPlusFile
InfoPlusEvent.toBean(Class)
)返回的对象中实际也将是InfoPlusFiles的实例。
开发者如果使用InfoPlusFiles类型,应意识到该对象中可以存放多个文件,getId、setId、getName、setName、getUri、setUri、getMime、setMime方法仅能存取第一个文件的信息,因此应废弃使用。InfoPlusEntity
构造器和说明 |
---|
InfoPlusFiles() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
add(InfoPlusFile infoPlusFile)
新增一个文件。
|
void |
add(int index,
InfoPlusFile element)
在指定位置插入一个文件。
|
boolean |
addAll(Collection<? extends InfoPlusFile> c)
增加多个文件。
|
boolean |
addAll(int index,
Collection<? extends InfoPlusFile> c)
从指定位置插入多个文件。
|
void |
clear()
移除所有文件。
|
boolean |
contains(Object o)
返回是否包含了对象。
|
boolean |
containsAll(Collection<?> c)
是否包含传入集合中的所有对象。
|
InfoPlusFile |
get(int index)
获取指定位置的文件。
|
List<InfoPlusFile> |
getFiles()
返回存储的多文件信息。
|
String |
getId()
已过时。
|
String |
getName()
已过时。
|
long |
getSize()
已过时。
|
String |
getUri()
已过时。
|
int |
indexOf(Object o)
给出传入对象在存储文件中首次出现的位置。
|
boolean |
isEmpty()
返回是否没有存储文件。
|
int |
lastIndexOf(Object o)
给出传入对象在存储文件中最后出现的位置。
|
InfoPlusFile |
remove(int index)
移除指定位置的文件。
|
boolean |
remove(Object o)
移除一个文件。
|
boolean |
removeAll(Collection<?> c)
移除多个文件。
|
boolean |
retainAll(Collection<?> c)
仅保留传入的集合中含有的对象。
|
InfoPlusFile |
set(int index,
InfoPlusFile element)
设置指定位置的文件。
|
void |
setFiles(List<InfoPlusFile> files)
设置存储的多文件信息。
|
void |
setId(String id)
已过时。
|
void |
setName(String name)
已过时。
|
void |
setSize(long size)
已过时。
|
void |
setUri(String uri)
已过时。
|
int |
size()
获取存储的文件个数。
|
getMime, setMime
@Deprecated public String getId()
getId
在类中 InfoPlusFile
@Deprecated public void setId(String id)
setId
在类中 InfoPlusFile
id
- 附件id@Deprecated public String getName()
getName
在类中 InfoPlusFile
@Deprecated public void setName(String name)
setName
在类中 InfoPlusFile
name
- 附件名称@Deprecated public long getSize()
getSize
在类中 InfoPlusFile
@Deprecated public void setSize(long size)
setSize
在类中 InfoPlusFile
size
- 附件大小@Deprecated public String getUri()
getUri
在类中 InfoPlusFile
@Deprecated public void setUri(String uri)
setUri
在类中 InfoPlusFile
uri
- 附件下载地址public List<InfoPlusFile> getFiles()
setFiles(List)
add(InfoPlusFile)
add(int, InfoPlusFile)
addAll(Collection)
addAll(int, Collection)
remove(Object)
remove(int)
removeAll(Collection)
clear()
public void setFiles(List<InfoPlusFile> files)
files
- public int size()
public boolean isEmpty()
public boolean contains(Object o)
o
- public boolean add(InfoPlusFile infoPlusFile)
infoPlusFile
- public boolean remove(Object o)
o
- public boolean containsAll(Collection<?> c)
c
- public boolean addAll(Collection<? extends InfoPlusFile> c)
c
- public boolean addAll(int index, Collection<? extends InfoPlusFile> c)
index
- c
- public boolean removeAll(Collection<?> c)
c
- public boolean retainAll(Collection<?> c)
c
- public void clear()
public InfoPlusFile get(int index)
set(int, InfoPlusFile)
方法重新设置回,否则存储的文件信息将不一致。index
- public InfoPlusFile set(int index, InfoPlusFile element)
index
- element
- public void add(int index, InfoPlusFile element)
index
- element
- public InfoPlusFile remove(int index)
index
- public int indexOf(Object o)
o
- public int lastIndexOf(Object o)
o
- Copyright © 2024. All rights reserved.