# Provider

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/java/security/Provider#nestedclasses)\|[Inherited Fields](https://developer.android.com/reference/java/security/Provider#inhfields)\|[Protected Ctors](https://developer.android.com/reference/java/security/Provider#proctors)\|[Methods](https://developer.android.com/reference/java/security/Provider#pubmethods)\|[Protected Methods](https://developer.android.com/reference/java/security/Provider#promethods)\|[Inherited Methods](https://developer.android.com/reference/java/security/Provider#inhmethods)  

# Provider

`
public


abstract
class
Provider
`  
`


``


``


``

extends `[Properties](https://developer.android.com/reference/java/util/Properties)`


``


`

|---|---|---|---|------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||||
| ↳ | [java.util.Dictionary](https://developer.android.com/reference/java/util/Dictionary)\<[java.lang.Object](https://developer.android.com/reference/java/lang/Object),[java.lang.Object](https://developer.android.com/reference/java/lang/Object)\> ||||
|   | ↳ | [java.util.Hashtable](https://developer.android.com/reference/java/util/Hashtable)\<[java.lang.Object](https://developer.android.com/reference/java/lang/Object),[java.lang.Object](https://developer.android.com/reference/java/lang/Object)\> |||
|   |   | ↳ | [java.util.Properties](https://developer.android.com/reference/java/util/Properties) ||
|   |   |   | ↳ | java.security.Provider |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known direct subclasses [AuthProvider](https://developer.android.com/reference/java/security/AuthProvider) |------------------------------------------------------------------------------------|-----------------------------------| | [AuthProvider](https://developer.android.com/reference/java/security/AuthProvider) | Legacy security code; do not use. | |

<br />

*** ** * ** ***

This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security. Services that a provider may implement include:

- Algorithms (such as DSA, RSA, MD5 or SHA-1).
- Key generation, conversion, and management facilities (such as for algorithm-specific keys).

Each provider has a name and a version number, and is configured in each runtime it is installed in.

See[The Provider Class](https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html#Provider)in the "Java Cryptography Architecture API Specification \& Reference" for information about how a particular type of provider, the cryptographic service provider, works and is installed. However, please note that a provider can be used to implement any security service in Java that uses a pluggable architecture with a choice of implementations that fit underneath.

Some provider implementations may encounter unrecoverable internal errors during their operation, for example a failure to communicate with a security token. A[ProviderException](https://developer.android.com/reference/java/security/ProviderException)should be used to indicate such errors.

The service type`Provider`is reserved for use by the security framework. Services of this type cannot be added, removed, or modified by applications. The following attributes are automatically placed in each Provider object:

|          Name           |                  Value                  |
|-------------------------|-----------------------------------------|
| `Provider.id name`      | `String.valueOf(provider.getName())`    |
| `Provider.id version`   | `String.valueOf(provider.getVersion())` |
| `Provider.id info`      | `String.valueOf(provider.getInfo())`    |
| `Provider.id className` | `provider.getClass().getName()`         |
[**Attributes Automatically Placed in a Provider Object**]

<br />

## Summary

|                                                             ### Nested classes                                                              ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [Provider.Service](https://developer.android.com/reference/java/security/Provider.Service) The description of a security service. |

|                                                                                                                                                                                                                                                                                                                 ### Inherited fields                                                                                                                                                                                                                                                                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[java.util.Properties](https://developer.android.com/reference/java/util/Properties) |-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` protected `[Properties](https://developer.android.com/reference/java/util/Properties) | [defaults](https://developer.android.com/reference/java/util/Properties#defaults) A property list that contains default values for any keys not found in this property list. | |

|                                                                                                                                                                                     ### Protected constructors                                                                                                                                                                                     ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Provider](https://developer.android.com/reference/java/security/Provider#Provider(java.lang.String,%20double,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name, double version, `[String](https://developer.android.com/reference/java/lang/String)` info) ` Constructs a provider with the specified name, version number, and information. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                                                                                                                                                                                                               | ` `[clear](https://developer.android.com/reference/java/security/Provider#clear())`() ` Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[compute](https://developer.android.com/reference/java/security/Provider#compute(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` Attempts to compute a mapping for the specified key and its current mapped value (or`null`if there is no current mapping).                                                                                              |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfAbsent](https://developer.android.com/reference/java/security/Provider#computeIfAbsent(java.lang.Object,%20java.util.function.Function<?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Function](https://developer.android.com/reference/java/util/function/Function)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> mappingFunction) ` If the specified key is not already associated with a value (or is mapped to`null`), attempts to compute its value using the given mapping function and enters it into this map unless`null`.                                                                                                                              |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfPresent](https://developer.android.com/reference/java/security/Provider#computeIfPresent(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.                                                             |
| ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[elements](https://developer.android.com/reference/java/security/Provider#elements())`() ` Returns an enumeration of the values in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>>` | ` `[entrySet](https://developer.android.com/reference/java/security/Provider#entrySet())`() ` Returns an unmodifiable Set view of the property entries contained in this Provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` void`                                                                                                                                                                                                                                                                               | ` `[forEach](https://developer.android.com/reference/java/security/Provider#forEach(java.util.function.BiConsumer<?%20super%20java.lang.Object,?%20super%20java.lang.Object>))`(`[BiConsumer](https://developer.android.com/reference/java/util/function/BiConsumer)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`> action) ` Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.                                                                                                                                                                                                         |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[get](https://developer.android.com/reference/java/security/Provider#get(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns the value to which the specified key is mapped, or`null`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[getInfo](https://developer.android.com/reference/java/security/Provider#getInfo())`() ` Returns a human-readable description of the provider and its services.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[getName](https://developer.android.com/reference/java/security/Provider#getName())`() ` Returns the name of this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[getOrDefault](https://developer.android.com/reference/java/security/Provider#getOrDefault(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` defaultValue) ` Returns the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                         |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[getProperty](https://developer.android.com/reference/java/security/Provider#getProperty(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` key) ` Searches for the property with the specified key in this property list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` `[Provider.Service](https://developer.android.com/reference/java/security/Provider.Service)                                                                                                                                                                                         | ` `[getService](https://developer.android.com/reference/java/security/Provider#getService(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` type, `[String](https://developer.android.com/reference/java/lang/String)` algorithm) ` Get the service describing this Provider's implementation of the specified type of this algorithm or alias.                                                                                                                                                                                                                                                                                                                                                                        |
| ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Provider.Service](https://developer.android.com/reference/java/security/Provider.Service)`>`                                                                                                                       | ` `[getServices](https://developer.android.com/reference/java/security/Provider#getServices())`() ` Get an unmodifiable Set of all services supported by this Provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` double`                                                                                                                                                                                                                                                                             | ` `[getVersion](https://developer.android.com/reference/java/security/Provider#getVersion())`() ` Returns the version number for this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                               | ` `[keySet](https://developer.android.com/reference/java/security/Provider#keySet())`() ` Returns an unmodifiable Set view of the property keys contained in this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[keys](https://developer.android.com/reference/java/security/Provider#keys())`() ` Returns an enumeration of the keys in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` void`                                                                                                                                                                                                                                                                               | ` `[load](https://developer.android.com/reference/java/security/Provider#load(java.io.InputStream))`(`[InputStream](https://developer.android.com/reference/java/io/InputStream)` inStream) ` Reads a property list (key and element pairs) from the input stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[merge](https://developer.android.com/reference/java/security/Provider#merge(java.lang.Object,%20java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` If the specified key is not already associated with a value or is associated with null, associates it with the given value. |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[put](https://developer.android.com/reference/java/security/Provider#put(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Sets the`key`property to have the specified`value`.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` void`                                                                                                                                                                                                                                                                               | ` `[putAll](https://developer.android.com/reference/java/security/Provider#putAll(java.util.Map<?,?>))`(`[Map](https://developer.android.com/reference/java/util/Map)`<?, ?> t) ` Copies all of the mappings from the specified Map to this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[putIfAbsent](https://developer.android.com/reference/java/security/Provider#putIfAbsent(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` If the specified key is not already associated with a value (or is mapped to`null`) associates it with the given value and returns`null`, else returns the current value.                                                                                                                                                                                                                                                                                                             |
| ` boolean`                                                                                                                                                                                                                                                                            | ` `[remove](https://developer.android.com/reference/java/security/Provider#remove(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Removes the entry for the specified key only if it is currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[remove](https://developer.android.com/reference/java/security/Provider#remove(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Removes the`key`property (and its corresponding`value`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[replace](https://developer.android.com/reference/java/security/Provider#replace(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Replaces the entry for the specified key only if it is currently mapped to some value.                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` boolean`                                                                                                                                                                                                                                                                            | ` `[replace](https://developer.android.com/reference/java/security/Provider#replace(java.lang.Object,%20java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` oldValue, `[Object](https://developer.android.com/reference/java/lang/Object)` newValue) ` Replaces the entry for the specified key only if currently mapped to the specified value.                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                                                                                                                                                                                                               | ` `[replaceAll](https://developer.android.com/reference/java/security/Provider#replaceAll(java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> function) ` Replaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception.                                                                                         |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[toString](https://developer.android.com/reference/java/security/Provider#toString())`() ` Returns a string with the name and the version number of this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` `[Collection](https://developer.android.com/reference/java/util/Collection)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                 | ` `[values](https://developer.android.com/reference/java/security/Provider#values())`() ` Returns an unmodifiable Collection view of the property values contained in this provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

|                                                                                                                                                                                             ### Protected methods                                                                                                                                                                                              ||
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[putService](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service))`(`[Provider.Service](https://developer.android.com/reference/java/security/Provider.Service)` s) ` Add a service.                                                                                                                                                          |
| ` void` | ` `[removeService](https://developer.android.com/reference/java/security/Provider#removeService(java.security.Provider.Service))`(`[Provider.Service](https://developer.android.com/reference/java/security/Provider.Service)` s) ` Remove a service previously added using[putService()](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service)). |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.util.Properties](https://developer.android.com/reference/java/util/Properties)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                                                                                                                                                                               | ` `[clear](https://developer.android.com/reference/java/util/Properties#clear())`() ` Clears this hashtable so that it contains no keys.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[clone](https://developer.android.com/reference/java/util/Properties#clone())`() ` Creates a shallow copy of this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[compute](https://developer.android.com/reference/java/util/Properties#compute(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` Attempts to compute a mapping for the specified key and its current mapped value (or`null`if there is no current mapping). This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation.                                                                                                       | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfAbsent](https://developer.android.com/reference/java/util/Properties#computeIfAbsent(java.lang.Object,%20java.util.function.Function<?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Function](https://developer.android.com/reference/java/util/function/Function)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> mappingFunction) ` If the specified key is not already associated with a value (or is mapped to`null`), attempts to compute its value using the given mapping function and enters it into this map unless`null`. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the mapping function modified this map during computation.                                                                                                                                         | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfPresent](https://developer.android.com/reference/java/util/Properties#computeIfPresent(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation.                                                                      | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[contains](https://developer.android.com/reference/java/util/Properties#contains(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Tests if some key maps into the specified value in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[containsKey](https://developer.android.com/reference/java/util/Properties#containsKey(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Tests if the specified object is a key in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[containsValue](https://developer.android.com/reference/java/util/Properties#containsValue(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Returns true if this hashtable maps one or more keys to this value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[elements](https://developer.android.com/reference/java/util/Properties#elements())`() ` Returns an enumeration of the values in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>>` | ` `[entrySet](https://developer.android.com/reference/java/util/Properties#entrySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the mappings contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[equals](https://developer.android.com/reference/java/util/Properties#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Compares the specified Object with this Map for equality, as per the definition in the Map interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                                                                                                                                                                               | ` `[forEach](https://developer.android.com/reference/java/util/Properties#forEach(java.util.function.BiConsumer<?%20super%20java.lang.Object,?%20super%20java.lang.Object>))`(`[BiConsumer](https://developer.android.com/reference/java/util/function/BiConsumer)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`> action) ` Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[get](https://developer.android.com/reference/java/util/Properties#get(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns the value to which the specified key is mapped, or`null`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[getOrDefault](https://developer.android.com/reference/java/util/Properties#getOrDefault(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` defaultValue) ` Returns the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[getProperty](https://developer.android.com/reference/java/util/Properties#getProperty(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` key, `[String](https://developer.android.com/reference/java/lang/String)` defaultValue) ` Searches for the property with the specified key in this property list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[getProperty](https://developer.android.com/reference/java/util/Properties#getProperty(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` key) ` Searches for the property with the specified key in this property list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` int`                                                                                                                                                                                                                                                                                | ` `[hashCode](https://developer.android.com/reference/java/util/Properties#hashCode())`() ` Returns the hash code value for this Map as per the definition in the Map interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[isEmpty](https://developer.android.com/reference/java/util/Properties#isEmpty())`() ` Tests if this hashtable maps no keys to values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                               | ` `[keySet](https://developer.android.com/reference/java/util/Properties#keySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the keys contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[keys](https://developer.android.com/reference/java/util/Properties#keys())`() ` Returns an enumeration of the keys in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                                                                                                                                                                                               | ` `[list](https://developer.android.com/reference/java/util/Properties#list(java.io.PrintWriter))`(`[PrintWriter](https://developer.android.com/reference/java/io/PrintWriter)` out) ` Prints this property list out to the specified output stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                                                                                                                                                                               | ` `[list](https://developer.android.com/reference/java/util/Properties#list(java.io.PrintStream))`(`[PrintStream](https://developer.android.com/reference/java/io/PrintStream)` out) ` Prints this property list out to the specified output stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                                                                                                                                                                               | ` `[load](https://developer.android.com/reference/java/util/Properties#load(java.io.Reader))`(`[Reader](https://developer.android.com/reference/java/io/Reader)` reader) ` Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                                                                                                                                                                               | ` `[load](https://developer.android.com/reference/java/util/Properties#load(java.io.InputStream))`(`[InputStream](https://developer.android.com/reference/java/io/InputStream)` inStream) ` Reads a property list (key and element pairs) from the input byte stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                                                                                                                                                                               | ` `[loadFromXML](https://developer.android.com/reference/java/util/Properties#loadFromXML(java.io.InputStream))`(`[InputStream](https://developer.android.com/reference/java/io/InputStream)` in) ` Loads all of the properties represented by the XML document on the specified input stream into this properties table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[merge](https://developer.android.com/reference/java/util/Properties#merge(java.lang.Object,%20java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> remappingFunction) ` If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation. | | ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<?>`                                                                                                                                                                                                  | ` `[propertyNames](https://developer.android.com/reference/java/util/Properties#propertyNames())`() ` Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[put](https://developer.android.com/reference/java/util/Properties#put(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Maps the specified`key`to the specified`value`in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                                                                                                                                                                               | ` `[putAll](https://developer.android.com/reference/java/util/Properties#putAll(java.util.Map<?,?>))`(`[Map](https://developer.android.com/reference/java/util/Map)`<?, ?> t) ` Copies all of the mappings from the specified map to this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[putIfAbsent](https://developer.android.com/reference/java/util/Properties#putIfAbsent(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` If the specified key is not already associated with a value (or is mapped to`null`) associates it with the given value and returns`null`, else returns the current value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                                                                                                                                                                               | ` `[rehash](https://developer.android.com/reference/java/util/Properties#rehash())`() ` Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[remove](https://developer.android.com/reference/java/util/Properties#remove(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Removes the entry for the specified key only if it is currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[remove](https://developer.android.com/reference/java/util/Properties#remove(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Removes the key (and its corresponding value) from this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[replace](https://developer.android.com/reference/java/util/Properties#replace(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Replaces the entry for the specified key only if it is currently mapped to some value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[replace](https://developer.android.com/reference/java/util/Properties#replace(java.lang.Object,%20java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` oldValue, `[Object](https://developer.android.com/reference/java/lang/Object)` newValue) ` Replaces the entry for the specified key only if currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                                                                                                                                                                               | ` `[replaceAll](https://developer.android.com/reference/java/util/Properties#replaceAll(java.util.function.BiFunction<?%20super%20java.lang.Object,?%20super%20java.lang.Object,?>))`(`[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ? super `[Object](https://developer.android.com/reference/java/lang/Object)`, ?> function) ` Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                                                                                                                                                                               | ` `[save](https://developer.android.com/reference/java/util/Properties#save(java.io.OutputStream,%20java.lang.String))`(`[OutputStream](https://developer.android.com/reference/java/io/OutputStream)` out, `[String](https://developer.android.com/reference/java/lang/String)` comments) ` *This method was deprecated in API level 15. This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the`store(OutputStream out, String comments)`method or the`storeToXML(OutputStream os, String comment)`method.*                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[setProperty](https://developer.android.com/reference/java/util/Properties#setProperty(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` key, `[String](https://developer.android.com/reference/java/lang/String)` value) ` Calls the`Hashtable`method`put`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` int`                                                                                                                                                                                                                                                                                | ` `[size](https://developer.android.com/reference/java/util/Properties#size())`() ` Returns the number of keys in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                                                                                                                                                                               | ` `[store](https://developer.android.com/reference/java/util/Properties#store(java.io.Writer,%20java.lang.String))`(`[Writer](https://developer.android.com/reference/java/io/Writer)` writer, `[String](https://developer.android.com/reference/java/lang/String)` comments) ` Writes this property list (key and element pairs) in this`Properties`table to the output character stream in a format suitable for using the[load(Reader)](https://developer.android.com/reference/java/util/Properties#load(java.io.Reader))method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                                                                                                                                                                               | ` `[store](https://developer.android.com/reference/java/util/Properties#store(java.io.OutputStream,%20java.lang.String))`(`[OutputStream](https://developer.android.com/reference/java/io/OutputStream)` out, `[String](https://developer.android.com/reference/java/lang/String)` comments) ` Writes this property list (key and element pairs) in this`Properties`table to the output stream in a format suitable for loading into a`Properties`table using the[load(InputStream)](https://developer.android.com/reference/java/util/Properties#load(java.io.InputStream))method.                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                                                                                                                                                                               | ` `[storeToXML](https://developer.android.com/reference/java/util/Properties#storeToXML(java.io.OutputStream,%20java.lang.String))`(`[OutputStream](https://developer.android.com/reference/java/io/OutputStream)` os, `[String](https://developer.android.com/reference/java/lang/String)` comment) ` Emits an XML document representing all of the properties contained in this table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                                                                                                                                                                               | ` `[storeToXML](https://developer.android.com/reference/java/util/Properties#storeToXML(java.io.OutputStream,%20java.lang.String,%20java.lang.String))`(`[OutputStream](https://developer.android.com/reference/java/io/OutputStream)` os, `[String](https://developer.android.com/reference/java/lang/String)` comment, `[String](https://developer.android.com/reference/java/lang/String)` encoding) ` Emits an XML document representing all of the properties contained in this table, using the specified encoding.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                                                                                                                                                                                               | ` `[storeToXML](https://developer.android.com/reference/java/util/Properties#storeToXML(java.io.OutputStream,%20java.lang.String,%20java.nio.charset.Charset))`(`[OutputStream](https://developer.android.com/reference/java/io/OutputStream)` os, `[String](https://developer.android.com/reference/java/lang/String)` comment, `[Charset](https://developer.android.com/reference/java/nio/charset/Charset)` charset) ` Emits an XML document representing all of the properties contained in this table, using the specified encoding.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[String](https://developer.android.com/reference/java/lang/String)`>`                                                                                                                                               | ` `[stringPropertyNames](https://developer.android.com/reference/java/util/Properties#stringPropertyNames())`() ` Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[toString](https://developer.android.com/reference/java/util/Properties#toString())`() ` Returns a string representation of this`Hashtable`object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "` , `" (comma and space).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Collection](https://developer.android.com/reference/java/util/Collection)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                 | ` `[values](https://developer.android.com/reference/java/util/Properties#values())`() ` Returns a[Collection](https://developer.android.com/reference/java/util/Collection)view of the values contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | ||
| From class` `[java.util.Hashtable](https://developer.android.com/reference/java/util/Hashtable)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                                                                                                                                                                               | ` `[clear](https://developer.android.com/reference/java/util/Hashtable#clear())`() ` Clears this hashtable so that it contains no keys.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[clone](https://developer.android.com/reference/java/util/Hashtable#clone())`() ` Creates a shallow copy of this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[compute](https://developer.android.com/reference/java/util/Hashtable#compute(K,%20java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> remappingFunction) ` Attempts to compute a mapping for the specified key and its current mapped value (or`null`if there is no current mapping). This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation.                                                                                        | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfAbsent](https://developer.android.com/reference/java/util/Hashtable#computeIfAbsent(K,%20java.util.function.Function<?%20super%20K,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Function](https://developer.android.com/reference/java/util/function/Function)`<? super K, ? extends V> mappingFunction) ` If the specified key is not already associated with a value (or is mapped to`null`), attempts to compute its value using the given mapping function and enters it into this map unless`null`. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the mapping function modified this map during computation.                                        | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[computeIfPresent](https://developer.android.com/reference/java/util/Hashtable#computeIfPresent(K,%20java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> remappingFunction) ` If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation.                                                       | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[contains](https://developer.android.com/reference/java/util/Hashtable#contains(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Tests if some key maps into the specified value in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[containsKey](https://developer.android.com/reference/java/util/Hashtable#containsKey(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Tests if the specified object is a key in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[containsValue](https://developer.android.com/reference/java/util/Hashtable#containsValue(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Returns true if this hashtable maps one or more keys to this value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[elements](https://developer.android.com/reference/java/util/Hashtable#elements())`() ` Returns an enumeration of the values in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>>` | ` `[entrySet](https://developer.android.com/reference/java/util/Hashtable#entrySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the mappings contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[equals](https://developer.android.com/reference/java/util/Hashtable#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Compares the specified Object with this Map for equality, as per the definition in the Map interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                                                                                                                                                                                               | ` `[forEach](https://developer.android.com/reference/java/util/Hashtable#forEach(java.util.function.BiConsumer<?%20super%20K,?%20super%20V>))`(`[BiConsumer](https://developer.android.com/reference/java/util/function/BiConsumer)`<? super K, ? super V> action) ` Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[get](https://developer.android.com/reference/java/util/Hashtable#get(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns the value to which the specified key is mapped, or`null`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[getOrDefault](https://developer.android.com/reference/java/util/Hashtable#getOrDefault(java.lang.Object,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` defaultValue) ` Returns the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                                                                                                                                                                                                                | ` `[hashCode](https://developer.android.com/reference/java/util/Hashtable#hashCode())`() ` Returns the hash code value for this Map as per the definition in the Map interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[isEmpty](https://developer.android.com/reference/java/util/Hashtable#isEmpty())`() ` Tests if this hashtable maps no keys to values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                               | ` `[keySet](https://developer.android.com/reference/java/util/Hashtable#keySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the keys contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                               | ` `[keys](https://developer.android.com/reference/java/util/Hashtable#keys())`() ` Returns an enumeration of the keys in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[merge](https://developer.android.com/reference/java/util/Hashtable#merge(K,%20V,%20java.util.function.BiFunction<?%20super%20V,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super V, ? super V, ? extends V> remappingFunction) ` If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. This method will, on a best-effort basis, throw a[ConcurrentModificationException](https://developer.android.com/reference/java/util/ConcurrentModificationException)if the remapping function modified this map during computation. | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[put](https://developer.android.com/reference/java/util/Hashtable#put(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Maps the specified`key`to the specified`value`in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                                                                                                                                                                                               | ` `[putAll](https://developer.android.com/reference/java/util/Hashtable#putAll(java.util.Map<?%20extends%20K,?%20extends%20V>))`(`[Map](https://developer.android.com/reference/java/util/Map)`<? extends K, ? extends V> t) ` Copies all of the mappings from the specified map to this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[putIfAbsent](https://developer.android.com/reference/java/util/Hashtable#putIfAbsent(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` If the specified key is not already associated with a value (or is mapped to`null`) associates it with the given value and returns`null`, else returns the current value.                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                                                                                                                                                                                               | ` `[rehash](https://developer.android.com/reference/java/util/Hashtable#rehash())`() ` Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[remove](https://developer.android.com/reference/java/util/Hashtable#remove(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Removes the entry for the specified key only if it is currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[remove](https://developer.android.com/reference/java/util/Hashtable#remove(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Removes the key (and its corresponding value) from this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                                                                                                                                                                            | ` `[replace](https://developer.android.com/reference/java/util/Hashtable#replace(K,%20V,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` oldValue, `[Object](https://developer.android.com/reference/java/lang/Object)` newValue) ` Replaces the entry for the specified key only if currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[replace](https://developer.android.com/reference/java/util/Hashtable#replace(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Replaces the entry for the specified key only if it is currently mapped to some value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                                                                                                                                                                               | ` `[replaceAll](https://developer.android.com/reference/java/util/Hashtable#replaceAll(java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> function) ` Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.                                                                                                                                                                                                                                                                                                                                                                      | | ` int`                                                                                                                                                                                                                                                                                | ` `[size](https://developer.android.com/reference/java/util/Hashtable#size())`() ` Returns the number of keys in this hashtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                                                                                                                                                 | ` `[toString](https://developer.android.com/reference/java/util/Hashtable#toString())`() ` Returns a string representation of this`Hashtable`object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "` , `" (comma and space).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Collection](https://developer.android.com/reference/java/util/Collection)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                 | ` `[values](https://developer.android.com/reference/java/util/Hashtable#values())`() ` Returns a[Collection](https://developer.android.com/reference/java/util/Collection)view of the values contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | ||
| From class` `[java.util.Dictionary](https://developer.android.com/reference/java/util/Dictionary)` ` |------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | ` `[elements](https://developer.android.com/reference/java/util/Dictionary#elements())`() ` Returns an enumeration of the values in this dictionary.                                                                                                                                                          | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                   | ` `[get](https://developer.android.com/reference/java/util/Dictionary#get(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns the value to which the key is mapped in this dictionary.                                                                    | | ` abstract boolean`                                                                                                                                              | ` `[isEmpty](https://developer.android.com/reference/java/util/Dictionary#isEmpty())`() ` Tests if this dictionary maps no keys to value.                                                                                                                                                                     | | ` abstract `[Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | ` `[keys](https://developer.android.com/reference/java/util/Dictionary#keys())`() ` Returns an enumeration of the keys in this dictionary.                                                                                                                                                                    | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                   | ` `[put](https://developer.android.com/reference/java/util/Dictionary#put(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Maps the specified`key`to the specified`value`in this dictionary. | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                   | ` `[remove](https://developer.android.com/reference/java/util/Dictionary#remove(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Removes the`key`(and its corresponding`value`) from this dictionary.                                                          | | ` abstract int`                                                                                                                                                  | ` `[size](https://developer.android.com/reference/java/util/Dictionary#size())`() ` Returns the number of entries (distinct keys) in this dictionary.                                                                                                                                                         | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[java.util.Map](https://developer.android.com/reference/java/util/Map)` ` |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void`                                                                                                                                                                                                                                                                               | ` `[clear](https://developer.android.com/reference/java/util/Map#clear())`() ` Removes all of the mappings from this map (optional operation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[compute](https://developer.android.com/reference/java/util/Map#compute(K,%20java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> remappingFunction) ` Attempts to compute a mapping for the specified key and its current mapped value (or`null`if there is no current mapping).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[computeIfAbsent](https://developer.android.com/reference/java/util/Map#computeIfAbsent(K,%20java.util.function.Function<?%20super%20K,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Function](https://developer.android.com/reference/java/util/function/Function)`<? super K, ? extends V> mappingFunction) ` If the specified key is not already associated with a value (or is mapped to`null`), attempts to compute its value using the given mapping function and enters it into this map unless`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[computeIfPresent](https://developer.android.com/reference/java/util/Map#computeIfPresent(K,%20java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> remappingFunction) ` If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract boolean`                                                                                                                                                                                                                                                                            | ` `[containsKey](https://developer.android.com/reference/java/util/Map#containsKey(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns`true`if this map contains a mapping for the specified key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract boolean`                                                                                                                                                                                                                                                                            | ` `[containsValue](https://developer.android.com/reference/java/util/Map#containsValue(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Returns`true`if this map maps one or more keys to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[copyOf](https://developer.android.com/reference/java/util/Map#copyOf(java.util.Map<?%20extends%20K,?%20extends%20V>))`(`[Map](https://developer.android.com/reference/java/util/Map)`<? extends K, ? extends V> map) ` Returns an[unmodifiable Map](https://developer.android.com/reference/java/security/Provider#unmodifiable)containing the entries of the given Map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` static <K, V> `[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                            | ` `[entry](https://developer.android.com/reference/java/util/Map#entry(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k, `[Object](https://developer.android.com/reference/java/lang/Object)` v) ` Returns an unmodifiable[Entry](https://developer.android.com/reference/java/util/Map.Entry)containing the given key and value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract `[Set](https://developer.android.com/reference/java/util/Set)`<`[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>>` | ` `[entrySet](https://developer.android.com/reference/java/util/Map#entrySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the mappings contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract boolean`                                                                                                                                                                                                                                                                            | ` `[equals](https://developer.android.com/reference/java/util/Map#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Compares the specified object with this map for equality.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` default void`                                                                                                                                                                                                                                                                                | ` `[forEach](https://developer.android.com/reference/java/util/Map#forEach(java.util.function.BiConsumer<?%20super%20K,?%20super%20V>))`(`[BiConsumer](https://developer.android.com/reference/java/util/function/BiConsumer)`<? super K, ? super V> action) ` Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[get](https://developer.android.com/reference/java/util/Map#get(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Returns the value to which the specified key is mapped, or`null`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[getOrDefault](https://developer.android.com/reference/java/util/Map#getOrDefault(java.lang.Object,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` defaultValue) ` Returns the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract int`                                                                                                                                                                                                                                                                                | ` `[hashCode](https://developer.android.com/reference/java/util/Map#hashCode())`() ` Returns the hash code value for this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract boolean`                                                                                                                                                                                                                                                                            | ` `[isEmpty](https://developer.android.com/reference/java/util/Map#isEmpty())`() ` Returns`true`if this map contains no key-value mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[Set](https://developer.android.com/reference/java/util/Set)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                               | ` `[keySet](https://developer.android.com/reference/java/util/Map#keySet())`() ` Returns a[Set](https://developer.android.com/reference/java/util/Set)view of the keys contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[merge](https://developer.android.com/reference/java/util/Map#merge(K,%20V,%20java.util.function.BiFunction<?%20super%20V,?%20super%20V,?%20extends%20V>))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value, `[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super V, ? super V, ? extends V> remappingFunction) ` If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5) ` Returns an unmodifiable map containing five mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4) ` Returns an unmodifiable map containing four mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1) ` Returns an unmodifiable map containing a single mapping.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5, `[Object](https://developer.android.com/reference/java/lang/Object)` k6, `[Object](https://developer.android.com/reference/java/lang/Object)` v6, `[Object](https://developer.android.com/reference/java/lang/Object)` k7, `[Object](https://developer.android.com/reference/java/lang/Object)` v7, `[Object](https://developer.android.com/reference/java/lang/Object)` k8, `[Object](https://developer.android.com/reference/java/lang/Object)` v8) ` Returns an unmodifiable map containing eight mappings.                                                                                                                                                                                                                                                                                                                         | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2) ` Returns an unmodifiable map containing two mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3) ` Returns an unmodifiable map containing three mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of())`() ` Returns an unmodifiable map containing zero mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5, `[Object](https://developer.android.com/reference/java/lang/Object)` k6, `[Object](https://developer.android.com/reference/java/lang/Object)` v6, `[Object](https://developer.android.com/reference/java/lang/Object)` k7, `[Object](https://developer.android.com/reference/java/lang/Object)` v7, `[Object](https://developer.android.com/reference/java/lang/Object)` k8, `[Object](https://developer.android.com/reference/java/lang/Object)` v8, `[Object](https://developer.android.com/reference/java/lang/Object)` k9, `[Object](https://developer.android.com/reference/java/lang/Object)` v9) ` Returns an unmodifiable map containing nine mappings.                                                                                                                                                              | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5, `[Object](https://developer.android.com/reference/java/lang/Object)` k6, `[Object](https://developer.android.com/reference/java/lang/Object)` v6) ` Returns an unmodifiable map containing six mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5, `[Object](https://developer.android.com/reference/java/lang/Object)` k6, `[Object](https://developer.android.com/reference/java/lang/Object)` v6, `[Object](https://developer.android.com/reference/java/lang/Object)` k7, `[Object](https://developer.android.com/reference/java/lang/Object)` v7) ` Returns an unmodifiable map containing seven mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[of](https://developer.android.com/reference/java/util/Map#of(K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V,%20K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` k1, `[Object](https://developer.android.com/reference/java/lang/Object)` v1, `[Object](https://developer.android.com/reference/java/lang/Object)` k2, `[Object](https://developer.android.com/reference/java/lang/Object)` v2, `[Object](https://developer.android.com/reference/java/lang/Object)` k3, `[Object](https://developer.android.com/reference/java/lang/Object)` v3, `[Object](https://developer.android.com/reference/java/lang/Object)` k4, `[Object](https://developer.android.com/reference/java/lang/Object)` v4, `[Object](https://developer.android.com/reference/java/lang/Object)` k5, `[Object](https://developer.android.com/reference/java/lang/Object)` v5, `[Object](https://developer.android.com/reference/java/lang/Object)` k6, `[Object](https://developer.android.com/reference/java/lang/Object)` v6, `[Object](https://developer.android.com/reference/java/lang/Object)` k7, `[Object](https://developer.android.com/reference/java/lang/Object)` v7, `[Object](https://developer.android.com/reference/java/lang/Object)` k8, `[Object](https://developer.android.com/reference/java/lang/Object)` v8, `[Object](https://developer.android.com/reference/java/lang/Object)` k9, `[Object](https://developer.android.com/reference/java/lang/Object)` v9, `[Object](https://developer.android.com/reference/java/lang/Object)` k10, `[Object](https://developer.android.com/reference/java/lang/Object)` v10) ` Returns an unmodifiable map containing ten mappings. | | ` static <K, V> `[Map](https://developer.android.com/reference/java/util/Map)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                    | ` `[ofEntries](https://developer.android.com/reference/java/util/Map#ofEntries(java.util.Map.Entry<?%20extends%20K,?%20extends%20V>[]))`(`[Entry...](https://developer.android.com/reference/java/util/Map.Entry)`<? extends K, ? extends V> entries) ` Returns an unmodifiable map containing keys and values extracted from the given entries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[put](https://developer.android.com/reference/java/util/Map#put(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Associates the specified value with the specified key in this map (optional operation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                                                                                                                                                                                               | ` `[putAll](https://developer.android.com/reference/java/util/Map#putAll(java.util.Map<?%20extends%20K,?%20extends%20V>))`(`[Map](https://developer.android.com/reference/java/util/Map)`<? extends K, ? extends V> m) ` Copies all of the mappings from the specified map to this map (optional operation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[putIfAbsent](https://developer.android.com/reference/java/util/Map#putIfAbsent(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` If the specified key is not already associated with a value (or is mapped to`null`) associates it with the given value and returns`null`, else returns the current value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` default boolean`                                                                                                                                                                                                                                                                             | ` `[remove](https://developer.android.com/reference/java/util/Map#remove(java.lang.Object,%20java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Removes the entry for the specified key only if it is currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                 | ` `[remove](https://developer.android.com/reference/java/util/Map#remove(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key) ` Removes the mapping for a key from this map if it is present (optional operation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` default boolean`                                                                                                                                                                                                                                                                             | ` `[replace](https://developer.android.com/reference/java/util/Map#replace(K,%20V,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` oldValue, `[Object](https://developer.android.com/reference/java/lang/Object)` newValue) ` Replaces the entry for the specified key only if currently mapped to the specified value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` default `[Object](https://developer.android.com/reference/java/lang/Object)                                                                                                                                                                                                                  | ` `[replace](https://developer.android.com/reference/java/util/Map#replace(K,%20V))`(`[Object](https://developer.android.com/reference/java/lang/Object)` key, `[Object](https://developer.android.com/reference/java/lang/Object)` value) ` Replaces the entry for the specified key only if it is currently mapped to some value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` default void`                                                                                                                                                                                                                                                                                | ` `[replaceAll](https://developer.android.com/reference/java/util/Map#replaceAll(java.util.function.BiFunction<?%20super%20K,?%20super%20V,?%20extends%20V>))`(`[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction)`<? super K, ? super V, ? extends V> function) ` Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                                                                                                                                                                                                                | ` `[size](https://developer.android.com/reference/java/util/Map#size())`() ` Returns the number of key-value mappings in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[Collection](https://developer.android.com/reference/java/util/Collection)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>`                                                                                                                                 | ` `[values](https://developer.android.com/reference/java/util/Map#values())`() ` Returns a[Collection](https://developer.android.com/reference/java/util/Collection)view of the values contained in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | ||

## Protected constructors

### Provider

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected Provider (String name, 
                double version, 
                String info)
```

Constructs a provider with the specified name, version number, and information.

<br />

|                                 Parameters                                  ||
|-----------|------------------------------------------------------------------|
| `name`    | `String`: the provider name. <br />                              |
| `version` | `double`: the provider version number. <br />                    |
| `info`    | `String`: a description of the provider and its services. <br /> |

## Public methods

### clear

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void clear ()
```

Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"clearProviderProperties."+name`(where`name`is the provider name) to see if it's ok to clear this provider.

<br />

|                                                                                                                                                             Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to clear this provider |

### compute

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object compute (Object key, 
                BiFunction<? super Object, ? super Object, ?> remappingFunction)
```

Attempts to compute a mapping for the specified key and its current mapped value (or`null`if there is no current mapping).

If a security manager is enabled, its`checkSecurityAccess`method is called with the strings`"putProviderProperty."+name`and`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values and remove this provider's properties.

<br />

|                                          Parameters                                          ||
|---------------------|-------------------------------------------------------------------------|
| `key`               | `Object`: key with which the specified value is to be associated <br /> |
| `remappingFunction` | `BiFunction`: the remapping function to compute a value <br />          |

|                                                                   Returns                                                                   ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the new value associated with the specified key, or null if none <br /> |

|                                                                                                                                                                        Throws                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values or remove properties. |

### computeIfAbsent

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object computeIfAbsent (Object key, 
                Function<? super Object, ?> mappingFunction)
```

If the specified key is not already associated with a value (or is mapped to`null`), attempts to compute its value using the given mapping function and enters it into this map unless`null`.

If a security manager is enabled, its`checkSecurityAccess`method is called with the strings`"putProviderProperty."+name`and`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values and remove this provider's properties.

<br />

|                                         Parameters                                         ||
|-------------------|-------------------------------------------------------------------------|
| `key`             | `Object`: key with which the specified value is to be associated <br /> |
| `mappingFunction` | `Function`: the mapping function to compute a value <br />              |

|                                                                                           Returns                                                                                            ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the current (existing or computed) value associated with the specified key, or null if the computed value is null <br /> |

|                                                                                                                                                                         Throws                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values and remove properties. |

### computeIfPresent

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object computeIfPresent (Object key, 
                BiFunction<? super Object, ? super Object, ?> remappingFunction)
```

If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.

If a security manager is enabled, its`checkSecurityAccess`method is called with the strings`"putProviderProperty."+name`and`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values and remove this provider's properties.

<br />

|                                          Parameters                                          ||
|---------------------|-------------------------------------------------------------------------|
| `key`               | `Object`: key with which the specified value is to be associated <br /> |
| `remappingFunction` | `BiFunction`: the remapping function to compute a value <br />          |

|                                                                   Returns                                                                   ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the new value associated with the specified key, or null if none <br /> |

|                                                                                                                                                                        Throws                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values or remove properties. |

### elements

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Enumeration<Object> elements ()
```

Returns an enumeration of the values in this hashtable. Use the Enumeration methods on the returned object to fetch the elements sequentially. If the hashtable is structurally modified while enumerating over the values then the results of enumerating are undefined.

<br />

|                                                                                                   Returns                                                                                                    ||
|------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| [Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | an enumeration of the values in this hashtable. <br /> |

### entrySet

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Set<Entry<Object, Object>> entrySet ()
```

Returns an unmodifiable Set view of the property entries contained in this Provider.

<br />

|                                                                                                                                                                   Returns                                                                                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| [Set](https://developer.android.com/reference/java/util/Set)`<`[Entry](https://developer.android.com/reference/java/util/Map.Entry)`<`[Object](https://developer.android.com/reference/java/lang/Object)`, `[Object](https://developer.android.com/reference/java/lang/Object)`>>` | a set view of the mappings contained in this map <br /> |

**See also:**

- [Map.Entry](https://developer.android.com/reference/java/util/Map.Entry)  

### forEach

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void forEach (BiConsumer<? super Object, ? super Object> action)
```

Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.

<br />

|                                Parameters                                ||
|----------|----------------------------------------------------------------|
| `action` | `BiConsumer`: The action to be performed for each entry <br /> |

### get

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object get (Object key)
```

Returns the value to which the specified key is mapped, or`null`if this map contains no mapping for the key.

More formally, if this map contains a mapping from a key`k`to a value`v`such that`(key.equals(k))`, then this method returns`v`; otherwise it returns`null`. (There can be at most one such mapping.)

<br />

|                                Parameters                                ||
|-------|-------------------------------------------------------------------|
| `key` | `Object`: the key whose associated value is to be returned <br /> |

|                                                                                    Returns                                                                                     ||
|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the value to which the specified key is mapped, or`null`if this map contains no mapping for the key <br /> |

### getInfo

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String getInfo ()
```

Returns a human-readable description of the provider and its services. This may return an HTML page, with relevant links.

<br />

|                                                          Returns                                                           ||
|--------------------------------------------------------------------|--------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a description of the provider and its services. <br /> |

### getName

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String getName ()
```

Returns the name of this provider.

<br />

|                                                Returns                                                ||
|--------------------------------------------------------------------|-----------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the name of this provider. <br /> |

### getOrDefault

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object getOrDefault (Object key, 
                Object defaultValue)
```

Returns the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key.

<br />

|                                    Parameters                                     ||
|----------------|-------------------------------------------------------------------|
| `key`          | `Object`: the key whose associated value is to be returned <br /> |
| `defaultValue` | `Object`: the default mapping of the key <br />                   |

|                                                                                        Returns                                                                                         ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the value to which the specified key is mapped, or`defaultValue`if this map contains no mapping for the key <br /> |

### getProperty

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String getProperty (String key)
```

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns`null`if the property is not found.

<br />

|                Parameters                 ||
|-------|------------------------------------|
| `key` | `String`: the property key. <br /> |

|                                                                 Returns                                                                  ||
|--------------------------------------------------------------------|----------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the value in this property list with the specified key value. <br /> |

### getService

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Provider.Service getService (String type, 
                String algorithm)
```

Get the service describing this Provider's implementation of the specified type of this algorithm or alias. If no such implementation exists, this method returns null. If there are two matching services, one added to this provider using[putService()](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service))and one added via[put()](https://developer.android.com/reference/java/util/Hashtable#put(K,%20V)), the service added via[putService()](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service))is returned.

<br />

|                                                                            Parameters                                                                             ||
|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `type`      | `String`: the type of[service](https://developer.android.com/reference/java/security/Provider.Service)requested (for example,`MessageDigest`) <br /> |
| `algorithm` | `String`: the case insensitive algorithm name (or alternate alias) of the service requested (for example,`SHA-1`) <br />                             |

|                                                                                           Returns                                                                                            ||
|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| [Provider.Service](https://developer.android.com/reference/java/security/Provider.Service) | the service describing this Provider's matching service or null if no such service exists <br /> |

|                                                            Throws                                                            ||
|------------------------------------------------------------------------------------------------|------------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if type or algorithm is null |

### getServices

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Set<Provider.Service> getServices ()
```

Get an unmodifiable Set of all services supported by this Provider.

<br />

|                                                                                                               Returns                                                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|
| [Set](https://developer.android.com/reference/java/util/Set)`<`[Provider.Service](https://developer.android.com/reference/java/security/Provider.Service)`>` | an unmodifiable Set of all services supported by this Provider <br /> |

### getVersion

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public double getVersion ()
```

Returns the version number for this provider.

<br />

|                        Returns                         ||
|----------|----------------------------------------------|
| `double` | the version number for this provider. <br /> |

### keySet

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Set<Object> keySet ()
```

Returns an unmodifiable Set view of the property keys contained in this provider.

<br />

|                                                                                          Returns                                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|
| [Set](https://developer.android.com/reference/java/util/Set)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | a set view of the keys contained in this map <br /> |

### keys

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Enumeration<Object> keys ()
```

Returns an enumeration of the keys in this hashtable. Use the Enumeration methods on the returned object to fetch the keys sequentially. If the hashtable is structurally modified while enumerating over the keys then the results of enumerating are undefined.

<br />

|                                                                                                  Returns                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| [Enumeration](https://developer.android.com/reference/java/util/Enumeration)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | an enumeration of the keys in this hashtable. <br /> |

### load

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void load (InputStream inStream)
```

Reads a property list (key and element pairs) from the input stream.

<br />

|                     Parameters                      ||
|------------|-----------------------------------------|
| `inStream` | `InputStream`: the input stream. <br /> |

|                                                                Throws                                                                ||
|----------------------------------------------------------------------------|----------------------------------------------------------|
| [IOException](https://developer.android.com/reference/java/io/IOException) | if an error occurred when reading from the input stream. |

**See also:**

- [Properties.load(InputStream)](https://developer.android.com/reference/java/util/Properties#load(java.io.InputStream))  

### merge

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object merge (Object key, 
                Object value, 
                BiFunction<? super Object, ? super Object, ?> remappingFunction)
```

If the specified key is not already associated with a value or is associated with null, associates it with the given value. Otherwise, replaces the value with the results of the given remapping function, or removes if the result is null. This method may be of use when combining multiple mapped values for a key.

If a security manager is enabled, its`checkSecurityAccess`method is called with the strings`"putProviderProperty."+name`and`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values and remove this provider's properties.

<br />

|                                                                                                        Parameters                                                                                                        ||
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `key`               | `Object`: key with which the resulting value is to be associated <br />                                                                                                                             |
| `value`             | `Object`: the non-null value to be merged with the existing value associated with the key or, if no existing value or a null value is associated with the key, to be associated with the key <br /> |
| `remappingFunction` | `BiFunction`: the remapping function to recompute a value if present <br />                                                                                                                         |

|                                                                                  Returns                                                                                   ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the new value associated with the specified key, or null if no value is associated with the key <br /> |

|                                                                                                                                                                        Throws                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values or remove properties. |

### put

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object put (Object key, 
                Object value)
```

Sets the`key`property to have the specified`value`.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values.

<br />

|                 Parameters                  ||
|---------|------------------------------------|
| `key`   | `Object`: the hashtable key <br /> |
| `value` | `Object`: the value <br />         |

|                                                                               Returns                                                                                ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the previous value of the specified key in this hashtable, or`null`if it did not have one <br /> |

|                                                                                                                                                              Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |

### putAll

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void putAll (Map<?, ?> t)
```

Copies all of the mappings from the specified Map to this provider. These mappings will replace any properties that this provider had for any of the keys currently in the specified Map.

<br />

|                      Parameters                      ||
|-----|-------------------------------------------------|
| `t` | `Map`: mappings to be stored in this map <br /> |

### putIfAbsent

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object putIfAbsent (Object key, 
                Object value)
```

If the specified key is not already associated with a value (or is mapped to`null`) associates it with the given value and returns`null`, else returns the current value.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values.

<br />

|                                    Parameters                                    ||
|---------|-------------------------------------------------------------------------|
| `key`   | `Object`: key with which the specified value is to be associated <br /> |
| `value` | `Object`: value to be associated with the specified key <br />          |

|                                                                                                                                                      Returns                                                                                                                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the previous value associated with the specified key, or`null`if there was no mapping for the key. (A`null`return can also indicate that the map previously associated`null`with the key, if the implementation supports null values.) <br /> |

|                                                                                                                                                              Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |

### remove

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean remove (Object key, 
                Object value)
```

Removes the entry for the specified key only if it is currently mapped to the specified value.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to remove this provider's properties.

<br />

|                                    Parameters                                    ||
|---------|-------------------------------------------------------------------------|
| `key`   | `Object`: key with which the specified value is associated <br />       |
| `value` | `Object`: value expected to be associated with the specified key <br /> |

|                     Returns                      ||
|-----------|---------------------------------------|
| `boolean` | `true`if the value was removed <br /> |

|                                                                                                                                                                     Throws                                                                                                                                                                     ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to remove this provider's properties. |

### remove

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object remove (Object key)
```

Removes the`key`property (and its corresponding`value`).

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to remove this provider's properties.

<br />

|                        Parameters                        ||
|-------|---------------------------------------------------|
| `key` | `Object`: the key that needs to be removed <br /> |

|                                                                                      Returns                                                                                       ||
|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the value to which the key had been mapped in this hashtable, or`null`if the key did not have a mapping <br /> |

|                                                                                                                                                                     Throws                                                                                                                                                                     ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to remove this provider's properties. |

### replace

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object replace (Object key, 
                Object value)
```

Replaces the entry for the specified key only if it is currently mapped to some value.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values.

<br />

|                                 Parameters                                 ||
|---------|-------------------------------------------------------------------|
| `key`   | `Object`: key with which the specified value is associated <br /> |
| `value` | `Object`: value to be associated with the specified key <br />    |

|                                                                                                                                                      Returns                                                                                                                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | the previous value associated with the specified key, or`null`if there was no mapping for the key. (A`null`return can also indicate that the map previously associated`null`with the key, if the implementation supports null values.) <br /> |

|                                                                                                                                                              Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |

### replace

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean replace (Object key, 
                Object oldValue, 
                Object newValue)
```

Replaces the entry for the specified key only if currently mapped to the specified value.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values.

<br />

|                                     Parameters                                      ||
|------------|-------------------------------------------------------------------------|
| `key`      | `Object`: key with which the specified value is associated <br />       |
| `oldValue` | `Object`: value expected to be associated with the specified key <br /> |
| `newValue` | `Object`: value to be associated with the specified key <br />          |

|                      Returns                      ||
|-----------|----------------------------------------|
| `boolean` | `true`if the value was replaced <br /> |

|                                                                                                                                                              Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |

### replaceAll

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void replaceAll (BiFunction<? super Object, ? super Object, ?> function)
```

Replaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception.

If a security manager is enabled, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values.

<br />

|                              Parameters                              ||
|------------|----------------------------------------------------------|
| `function` | `BiFunction`: the function to apply to each entry <br /> |

|                                                                                                                                                              Throws                                                                                                                                                              ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException) | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |

### toString

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns a string with the name and the version number of this provider.

<br />

|                                                                    Returns                                                                    ||
|--------------------------------------------------------------------|---------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the string with the name and the version number for this provider. <br /> |

### values

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Collection<Object> values ()
```

Returns an unmodifiable Collection view of the property values contained in this provider.

<br />

|                                                                                                     Returns                                                                                                      ||
|----------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|
| [Collection](https://developer.android.com/reference/java/util/Collection)`<`[Object](https://developer.android.com/reference/java/lang/Object)`>` | a collection view of the values contained in this map <br /> |

## Protected methods

### putService

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected void putService (Provider.Service s)
```

Add a service. If a service of the same type with the same algorithm name exists and it was added using[putService()](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service)), it is replaced by the new service. This method also places information about this service in the provider's Hashtable values in the format described in the[Java Cryptography Architecture API Specification \& Reference](https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html).

Also, if there is a security manager, its`checkSecurityAccess`method is called with the string`"putProviderProperty."+name`, where`name`is the provider name, to see if it's ok to set this provider's property values. If the default implementation of`checkSecurityAccess`is used (that is, that method is not overriden), then this results in a call to the security manager's`checkPermission`method with a`SecurityPermission("putProviderProperty."+name)`permission.

<br />

|                     Parameters                     ||
|-----|-----------------------------------------------|
| `s` | `Provider.Service`: the Service to add <br /> |

|                                                                                                                                                                 Throws                                                                                                                                                                 ||
|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException)       | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to set property values. |
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if s is null                                                                                                                                                                                                                           |

### removeService

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected void removeService (Provider.Service s)
```

Remove a service previously added using[putService()](https://developer.android.com/reference/java/security/Provider#putService(java.security.Provider.Service)). The specified service is removed from this provider. It will no longer be returned by[getService()](https://developer.android.com/reference/java/security/Provider#getService(java.lang.String,%20java.lang.String))and its information will be removed from this provider's Hashtable.

Also, if there is a security manager, its`checkSecurityAccess`method is called with the string`"removeProviderProperty."+name`, where`name`is the provider name, to see if it's ok to remove this provider's properties. If the default implementation of`checkSecurityAccess`is used (that is, that method is not overriden), then this results in a call to the security manager's`checkPermission`method with a`SecurityPermission("removeProviderProperty."+name)`permission.

<br />

|                        Parameters                         ||
|-----|------------------------------------------------------|
| `s` | `Provider.Service`: the Service to be removed <br /> |

|                                                                                                                                                                        Throws                                                                                                                                                                        ||
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SecurityException](https://developer.android.com/reference/java/lang/SecurityException)       | if a security manager exists and its[SecurityManager.checkSecurityAccess(String)](https://developer.android.com/reference/java/lang/SecurityManager#checkSecurityAccess(java.lang.String))method denies access to remove this provider's properties. |
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if s is null                                                                                                                                                                                                                                         |