| Modifier and Type | Class and Description |
|---|---|
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private static WebViewStore. | |
| private static boolean | |
| private static final Logger | |
| private static final Queue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static WebView | Returns: WebView instanceReturns a preloaded web view instance if available; And it will create a new one if not. |
| public static boolean | |
| public static void | |
| public static void |
| config | back to summary |
|---|---|
| private static WebViewStore. | |
| isInitialized | back to summary |
|---|---|
| private static boolean isInitialized | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| WEB_VIEWS | back to summary |
|---|---|
| private static final Queue<WebView> WEB_VIEWS | |
| WebViewStore | back to summary |
|---|---|
| public WebViewStore() | |
| addWebViewLater | back to summary |
|---|---|
| private static void addWebViewLater() | |
| get | back to summary |
|---|---|
| public static WebView get() Returns a preloaded web view instance if available; And it will create a new one if not.
| |
| hasMore | back to summary |
|---|---|
public static boolean hasMore()
| |
| init | back to summary |
|---|---|
| public static void init(WebViewStore. Initialize Note that this method must be called at application startup. | |
| init | back to summary |
|---|---|
| public static void init() Initialize Note that this method must be called at application startup. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | minimumNumberOfInstances
Record Component accessed by minimumNumberOfInstances(). |
| private final int | numberOfPreloadedInstances
Record Component accessed by numberOfPreloadedInstances(). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public int | Returns: The minimum number of web views the store can reach. The store needs to load more instances once it reaches this threshold
|
| public int | Returns: The number of web view instances to be loaded at application startup
|
| public final int | |
| public int | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| minimumNumberOfInstances | back to summary |
|---|---|
| private final int minimumNumberOfInstances Record Component accessed by minimumNumberOfInstances(). | |
| numberOfPreloadedInstances | back to summary |
|---|---|
| private final int numberOfPreloadedInstances Record Component accessed by numberOfPreloadedInstances(). | |
| Configuration | back to summary |
|---|---|
| public Configuration(int numberOfPreloadedInstances, int minimumNumberOfInstances) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| getMinimumNumberOfInstances | back to summary |
|---|---|
public int getMinimumNumberOfInstances()
| |
| getNumberOfPreloadedInstances | back to summary |
|---|---|
public int getNumberOfPreloadedInstances()
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| minimumNumberOfInstances | back to summary |
|---|---|
| public int minimumNumberOfInstances() Record Component getter of minimumNumberOfInstances. | |
| numberOfPreloadedInstances | back to summary |
|---|---|
| public int numberOfPreloadedInstances() Record Component getter of numberOfPreloadedInstances. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |