diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-03-13 01:05:20 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-03-13 01:05:20 +0100 |
commit | 0365722f8549ee93918be99da1b9f901cf0b2c8d (patch) | |
tree | 01624b829e0d11c122070dacab6e7b1bf90325a8 /api/pl.treksoft.kvision.utils/-cache | |
parent | 4ffe1bee99a55e985bb71dacff3839263cb4316f (diff) | |
download | kvision-0365722f8549ee93918be99da1b9f901cf0b2c8d.tar.gz kvision-0365722f8549ee93918be99da1b9f901cf0b2c8d.tar.bz2 kvision-0365722f8549ee93918be99da1b9f901cf0b2c8d.zip |
API documentation for KVision 3.5.2
Diffstat (limited to 'api/pl.treksoft.kvision.utils/-cache')
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/-init-.html | 2 | ||||
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/get.html | 4 | ||||
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/index.html | 37 | ||||
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/set.html | 4 | ||||
-rw-r--r-- | api/pl.treksoft.kvision.utils/-cache/to-string.html | 2 |
5 files changed, 18 insertions, 31 deletions
diff --git a/api/pl.treksoft.kvision.utils/-cache/-init-.html b/api/pl.treksoft.kvision.utils/-cache/-init-.html index 05af599a..00c7412d 100644 --- a/api/pl.treksoft.kvision.utils/-cache/-init-.html +++ b/api/pl.treksoft.kvision.utils/-cache/-init-.html @@ -8,7 +8,7 @@ <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Cache</a> / <a href="./-init-.html"><init></a><br/> <br/> <h1><init></h1> -<a name="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)"></a> +(js) <a name="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)"></a> <code><span class="identifier">Cache</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)/capacity">capacity</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> 50<span class="symbol">)</span></code> <p>This is a LRU cache that has no performance impact for cache insertions once the capacity of the cache has been reached. For cache hit, diff --git a/api/pl.treksoft.kvision.utils/-cache/get.html b/api/pl.treksoft.kvision.utils/-cache/get.html index c6cb9816..87ab579e 100644 --- a/api/pl.treksoft.kvision.utils/-cache/get.html +++ b/api/pl.treksoft.kvision.utils/-cache/get.html @@ -8,8 +8,8 @@ <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Cache</a> / <a href="./get.html">get</a><br/> <br/> <h1>get</h1> -<a name="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)"></a> -<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">get</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)/key">key</span><span class="symbol">:</span> <a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#V"><span class="identifier">V</span></a><span class="symbol">?</span></code> +(js) <a name="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)"></a> +<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">get</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)/key">key</span><span class="symbol">:</span> <span class="identifier">K</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">V</span><span class="symbol">?</span></code> <p><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html">HashMap</a> get is O(1). More info: https://stackoverflow.com/a/4578039/2085356</p> </BODY> diff --git a/api/pl.treksoft.kvision.utils/-cache/index.html b/api/pl.treksoft.kvision.utils/-cache/index.html index 15c207b0..779efe0d 100644 --- a/api/pl.treksoft.kvision.utils/-cache/index.html +++ b/api/pl.treksoft.kvision.utils/-cache/index.html @@ -8,7 +8,7 @@ <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="./index.html">Cache</a><br/> <br/> <h1>Cache</h1> -<code><span class="keyword">class </span><span class="identifier">Cache</span><span class="symbol"><</span><span class="identifier">K</span><span class="symbol">, </span><span class="identifier">V</span><span class="symbol">></span></code> +(js) <code><span class="keyword">class </span><span class="identifier">Cache</span><span class="symbol"><</span><span class="identifier">K</span><span class="symbol">, </span><span class="identifier">V</span><span class="symbol">></span></code> <p>This is a LRU cache that has no performance impact for cache insertions once the capacity of the cache has been reached. For cache hit, performance is O(1) and for cache eviction, it is O(1).</p> @@ -17,14 +17,14 @@ performance is O(1) and for cache eviction, it is O(1).</p> <tbody> <tr> <td> -<p><a href="-init-.html"><init></a></p> +(js) +<h4><a href="-init-.html"><init></a></h4> </td> <td> -<code><span class="identifier">Cache</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)/capacity">capacity</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> 50<span class="symbol">)</span></code> <p>This is a LRU cache that has no performance impact for cache insertions once the capacity of the cache has been reached. For cache hit, performance is O(1) and for cache eviction, it is O(1).</p> -</td> +<code><span class="identifier">Cache</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$<init>(kotlin.Int)/capacity">capacity</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> 50<span class="symbol">)</span></code></td> </tr> </tbody> </table> @@ -33,46 +33,33 @@ performance is O(1) and for cache eviction, it is O(1).</p> <tbody> <tr> <td> -<p><a href="get.html">get</a></p> +(js) +<h4><a href="get.html">get</a></h4> </td> <td> -<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">get</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)/key">key</span><span class="symbol">:</span> <a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#V"><span class="identifier">V</span></a><span class="symbol">?</span></code> <p><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html">HashMap</a> get is O(1). More info: https://stackoverflow.com/a/4578039/2085356</p> -</td> +<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">get</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$get(pl.treksoft.kvision.utils.Cache.K)/key">key</span><span class="symbol">:</span> <span class="identifier">K</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">V</span><span class="symbol">?</span></code></td> </tr> <tr> <td> -<p><a href="set.html">set</a></p> +(js) +<h4><a href="set.html">set</a></h4> </td> <td> -<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">set</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/key">key</span><span class="symbol">:</span> <a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/value">value</span><span class="symbol">:</span> <a href="index.html#V"><span class="identifier">V</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">?</span></code> <p><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html">HashMap</a> put and remove is O(1). More info: https://stackoverflow.com/a/4578039/2085356</p> -</td> +<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">set</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/key">key</span><span class="symbol">:</span> <span class="identifier">K</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/value">value</span><span class="symbol">:</span> <span class="identifier">V</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">K</span><span class="symbol">?</span></code></td> </tr> <tr> <td> -<p><a href="to-string.html">toString</a></p> +(js) +<h4><a href="to-string.html">toString</a></h4> </td> <td> <code><span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code></td> </tr> </tbody> </table> -<h3>Extension Functions</h3> -<table> -<tbody> -<tr> -<td> -<p><a href="../kotlin.-any/create-instance.html">createInstance</a></p> -</td> -<td> -<code><span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">.</span><span class="identifier">createInstance</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.utils$createInstance(kotlin.Any, kotlin.Array((kotlin.Any)))/args">args</span><span class="symbol">:</span> <span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">: </span><a href="../kotlin.-any/create-instance.html#T"><span class="identifier">T</span></a></code> -<p>Helper function for creating JavaScript objects from dynamic constructors.</p> -</td> -</tr> -</tbody> -</table> </BODY> </HTML> diff --git a/api/pl.treksoft.kvision.utils/-cache/set.html b/api/pl.treksoft.kvision.utils/-cache/set.html index 1d3c6baa..522de783 100644 --- a/api/pl.treksoft.kvision.utils/-cache/set.html +++ b/api/pl.treksoft.kvision.utils/-cache/set.html @@ -8,8 +8,8 @@ <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Cache</a> / <a href="./set.html">set</a><br/> <br/> <h1>set</h1> -<a name="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)"></a> -<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">set</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/key">key</span><span class="symbol">:</span> <a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/value">value</span><span class="symbol">:</span> <a href="index.html#V"><span class="identifier">V</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#K"><span class="identifier">K</span></a><span class="symbol">?</span></code> +(js) <a name="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)"></a> +<code><span class="keyword">operator</span> <span class="keyword">fun </span><span class="identifier">set</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/key">key</span><span class="symbol">:</span> <span class="identifier">K</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.utils.Cache$set(pl.treksoft.kvision.utils.Cache.K, pl.treksoft.kvision.utils.Cache.V)/value">value</span><span class="symbol">:</span> <span class="identifier">V</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">K</span><span class="symbol">?</span></code> <p><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html">HashMap</a> put and remove is O(1). More info: https://stackoverflow.com/a/4578039/2085356</p> </BODY> diff --git a/api/pl.treksoft.kvision.utils/-cache/to-string.html b/api/pl.treksoft.kvision.utils/-cache/to-string.html index cd476dfd..69a12f73 100644 --- a/api/pl.treksoft.kvision.utils/-cache/to-string.html +++ b/api/pl.treksoft.kvision.utils/-cache/to-string.html @@ -8,7 +8,7 @@ <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Cache</a> / <a href="./to-string.html">toString</a><br/> <br/> <h1>toString</h1> -<a name="pl.treksoft.kvision.utils.Cache$toString()"></a> +(js) <a name="pl.treksoft.kvision.utils.Cache$toString()"></a> <code><span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code> </BODY> </HTML> |