-
方法概要
Close the table view and releases resources allocated.
boolean
Returns
true
if this
TableView
contains a mapping for the specified
key.
Returns a Set view of the mappings contained in this map.
void
Performs the given action for each entry in this map until all entries
have been processed or the action throws an exception.
void
Performs the give action for each entry in this map until all entries
have been processed or the action throws an exception.
Returns the value to which the specified key is mapped, or null if this map contains
no mapping for the key.
boolean
Returns
true
if this
TableView
contains no key-value mappings.
int
Returns the number of key-value mappings in the
TableView
.
Returns a Collection view of the values contained in this
TableView
.
-
方法详细资料
-
size
int size()
Returns the number of key-value mappings in the
TableView
.
- 返回:
- the number of key-value mappings in this TableView
-
isEmpty
boolean isEmpty()
Returns
true
if this
TableView
contains no key-value mappings.
- 返回:
- true if this TableView contains no key-value mappings
-
containsKey
boolean containsKey(String key)
Returns
true
if this
TableView
contains a mapping for the specified
key.
- 参数:
key
- key whose presence in this map is to be tested
- 返回:
- true if this map contains a mapping for the specified key
-
get
Returns the value to which the specified key is mapped, or null if this map contains
no mapping for the key.
- 参数:
key
- the key whose associated value is to be returned
- 返回:
- the value associated with the key or null if the keys was not found
-
entrySet
Returns a Set view of the mappings contained in this map.
- 返回:
- a set view of the mappings contained in this map
-
keySet
- 返回:
- a set view of the keys contained in this map
-
values
Returns a Collection view of the values contained in this
TableView
.
- 返回:
- a collection view of the values contained in this TableView
-
forEach
Performs the given action for each entry in this map until all entries
have been processed or the action throws an exception.
- 参数:
action
- The action to be performed for each entry
-
forEachAndListen
Performs the give action for each entry in this map until all entries
have been processed or the action throws an exception.
- 参数:
action
- The action to be performed for each entry
-
closeAsync
Close the table view and releases resources allocated.
- 返回:
- a future that can used to track when the table view has been closed.