diff options
Diffstat (limited to 'api/pl.treksoft.kvision.utils')
24 files changed, 587 insertions, 0 deletions
diff --git a/api/pl.treksoft.kvision.utils/-cache/-init-.html b/api/pl.treksoft.kvision.utils/-cache/-init-.html new file mode 100644 index 00000000..05af599a --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/-init-.html @@ -0,0 +1,17 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache.<init> - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<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> +<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> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-cache/get.html b/api/pl.treksoft.kvision.utils/-cache/get.html new file mode 100644 index 00000000..c6cb9816 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/get.html @@ -0,0 +1,16 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache.get - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<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> +<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> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-cache/index.html b/api/pl.treksoft.kvision.utils/-cache/index.html new file mode 100644 index 00000000..15c207b0 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/index.html @@ -0,0 +1,78 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<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> +<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> +<h3>Constructors</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="-init-.html"><init></a></p> +</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> +</tr> +</tbody> +</table> +<h3>Functions</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="get.html">get</a></p> +</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> +</tr> +<tr> +<td> +<p><a href="set.html">set</a></p> +</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> +</tr> +<tr> +<td> +<p><a href="to-string.html">toString</a></p> +</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 new file mode 100644 index 00000000..1d3c6baa --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/set.html @@ -0,0 +1,16 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache.set - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<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> +<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> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-cache/to-string.html b/api/pl.treksoft.kvision.utils/-cache/to-string.html new file mode 100644 index 00000000..cd476dfd --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-cache/to-string.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Cache.toString - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<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> +<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> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/-init-.html b/api/pl.treksoft.kvision.utils/-linked-list/-init-.html new file mode 100644 index 00000000..6daf79bf --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/-init-.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.<init> - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./-init-.html"><init></a><br/> +<br/> +<h1><init></h1> +<a name="pl.treksoft.kvision.utils.LinkedList$<init>()"></a> +<code><span class="identifier">LinkedList</span><span class="symbol">(</span><span class="symbol">)</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/append.html b/api/pl.treksoft.kvision.utils/-linked-list/append.html new file mode 100644 index 00000000..a9844da8 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/append.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.append - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./append.html">append</a><br/> +<br/> +<h1>append</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$append(pl.treksoft.kvision.utils.LinkedList.T)"></a> +<code><span class="keyword">fun </span><span class="identifier">append</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$append(pl.treksoft.kvision.utils.LinkedList.T)/value">value</span><span class="symbol">:</span> <a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/count.html b/api/pl.treksoft.kvision.utils/-linked-list/count.html new file mode 100644 index 00000000..ea9784e0 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/count.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.count - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./count.html">count</a><br/> +<br/> +<h1>count</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$count()"></a> +<code><span class="keyword">fun </span><span class="identifier">count</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/first.html b/api/pl.treksoft.kvision.utils/-linked-list/first.html new file mode 100644 index 00000000..87bb9e23 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/first.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.first - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./first.html">first</a><br/> +<br/> +<h1>first</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$first()"></a> +<code><span class="keyword">fun </span><span class="identifier">first</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/index.html b/api/pl.treksoft.kvision.utils/-linked-list/index.html new file mode 100644 index 00000000..f8c5b02c --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/index.html @@ -0,0 +1,126 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="./index.html">LinkedList</a><br/> +<br/> +<h1>LinkedList</h1> +<code><span class="keyword">class </span><span class="identifier">LinkedList</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code> +<h3>Constructors</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="-init-.html"><init></a></p> +</td> +<td> +<code><span class="identifier">LinkedList</span><span class="symbol">(</span><span class="symbol">)</span></code></td> +</tr> +</tbody> +</table> +<h3>Properties</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="is-empty.html">isEmpty</a></p> +</td> +<td> +<code><span class="keyword">var </span><span class="identifier">isEmpty</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> +</tr> +</tbody> +</table> +<h3>Functions</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="append.html">append</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">append</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$append(pl.treksoft.kvision.utils.LinkedList.T)/value">value</span><span class="symbol">:</span> <a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td> +</tr> +<tr> +<td> +<p><a href="count.html">count</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">count</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a></code></td> +</tr> +<tr> +<td> +<p><a href="first.html">first</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">first</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="last.html">last</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">last</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="node-at-index.html">nodeAtIndex</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">nodeAtIndex</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$nodeAtIndex(kotlin.Int)/index">index</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><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="remove-all.html">removeAll</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">removeAll</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td> +</tr> +<tr> +<td> +<p><a href="remove-at-index.html">removeAtIndex</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">removeAtIndex</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$removeAtIndex(kotlin.Int)/index">index</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><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="remove-last.html">removeLast</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">removeLast</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="remove-node.html">removeNode</a></p> +</td> +<td> +<code><span class="keyword">fun </span><span class="identifier">removeNode</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$removeNode(pl.treksoft.kvision.utils.Node((pl.treksoft.kvision.utils.LinkedList.T)))/node">node</span><span class="symbol">:</span> <a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a></code></td> +</tr> +<tr> +<td> +<p><a href="to-string.html">toString</a></p> +</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/-linked-list/is-empty.html b/api/pl.treksoft.kvision.utils/-linked-list/is-empty.html new file mode 100644 index 00000000..0e0c88b8 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/is-empty.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.isEmpty - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./is-empty.html">isEmpty</a><br/> +<br/> +<h1>isEmpty</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$isEmpty"></a> +<code><span class="keyword">var </span><span class="identifier">isEmpty</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/last.html b/api/pl.treksoft.kvision.utils/-linked-list/last.html new file mode 100644 index 00000000..920600bd --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/last.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.last - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./last.html">last</a><br/> +<br/> +<h1>last</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$last()"></a> +<code><span class="keyword">fun </span><span class="identifier">last</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/node-at-index.html b/api/pl.treksoft.kvision.utils/-linked-list/node-at-index.html new file mode 100644 index 00000000..7faf6347 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/node-at-index.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.nodeAtIndex - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./node-at-index.html">nodeAtIndex</a><br/> +<br/> +<h1>nodeAtIndex</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$nodeAtIndex(kotlin.Int)"></a> +<code><span class="keyword">fun </span><span class="identifier">nodeAtIndex</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$nodeAtIndex(kotlin.Int)/index">index</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><span class="symbol">: </span><a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/remove-all.html b/api/pl.treksoft.kvision.utils/-linked-list/remove-all.html new file mode 100644 index 00000000..988bf621 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/remove-all.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.removeAll - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./remove-all.html">removeAll</a><br/> +<br/> +<h1>removeAll</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$removeAll()"></a> +<code><span class="keyword">fun </span><span class="identifier">removeAll</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/remove-at-index.html b/api/pl.treksoft.kvision.utils/-linked-list/remove-at-index.html new file mode 100644 index 00000000..fd135542 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/remove-at-index.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.removeAtIndex - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./remove-at-index.html">removeAtIndex</a><br/> +<br/> +<h1>removeAtIndex</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$removeAtIndex(kotlin.Int)"></a> +<code><span class="keyword">fun </span><span class="identifier">removeAtIndex</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$removeAtIndex(kotlin.Int)/index">index</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><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/remove-last.html b/api/pl.treksoft.kvision.utils/-linked-list/remove-last.html new file mode 100644 index 00000000..063385a9 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/remove-last.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.removeLast - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./remove-last.html">removeLast</a><br/> +<br/> +<h1>removeLast</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$removeLast()"></a> +<code><span class="keyword">fun </span><span class="identifier">removeLast</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/remove-node.html b/api/pl.treksoft.kvision.utils/-linked-list/remove-node.html new file mode 100644 index 00000000..c53fba65 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/remove-node.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.removeNode - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./remove-node.html">removeNode</a><br/> +<br/> +<h1>removeNode</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$removeNode(pl.treksoft.kvision.utils.Node((pl.treksoft.kvision.utils.LinkedList.T)))"></a> +<code><span class="keyword">fun </span><span class="identifier">removeNode</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.LinkedList$removeNode(pl.treksoft.kvision.utils.Node((pl.treksoft.kvision.utils.LinkedList.T)))/node">node</span><span class="symbol">:</span> <a href="../-node/index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-linked-list/to-string.html b/api/pl.treksoft.kvision.utils/-linked-list/to-string.html new file mode 100644 index 00000000..c0357f7a --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-linked-list/to-string.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>LinkedList.toString - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">LinkedList</a> / <a href="./to-string.html">toString</a><br/> +<br/> +<h1>toString</h1> +<a name="pl.treksoft.kvision.utils.LinkedList$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> diff --git a/api/pl.treksoft.kvision.utils/-node/-init-.html b/api/pl.treksoft.kvision.utils/-node/-init-.html new file mode 100644 index 00000000..5ed9a10a --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-node/-init-.html @@ -0,0 +1,15 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Node.<init> - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Node</a> / <a href="./-init-.html"><init></a><br/> +<br/> +<h1><init></h1> +<a name="pl.treksoft.kvision.utils.Node$<init>(pl.treksoft.kvision.utils.Node.T)"></a> +<code><span class="identifier">Node</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Node$<init>(pl.treksoft.kvision.utils.Node.T)/value">value</span><span class="symbol">:</span> <a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">)</span></code> +<p>Created by gazollajunior on 07/04/16.</p> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-node/index.html b/api/pl.treksoft.kvision.utils/-node/index.html new file mode 100644 index 00000000..bcd9cbdf --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-node/index.html @@ -0,0 +1,68 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Node - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="./index.html">Node</a><br/> +<br/> +<h1>Node</h1> +<code><span class="keyword">class </span><span class="identifier">Node</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code> +<p>Created by gazollajunior on 07/04/16.</p> +<h3>Constructors</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="-init-.html"><init></a></p> +</td> +<td> +<code><span class="identifier">Node</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.Node$<init>(pl.treksoft.kvision.utils.Node.T)/value">value</span><span class="symbol">:</span> <a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">)</span></code> +<p>Created by gazollajunior on 07/04/16.</p> +</td> +</tr> +</tbody> +</table> +<h3>Properties</h3> +<table> +<tbody> +<tr> +<td> +<p><a href="next.html">next</a></p> +</td> +<td> +<code><span class="keyword">var </span><span class="identifier">next</span><span class="symbol">: </span><a href="./index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="previous.html">previous</a></p> +</td> +<td> +<code><span class="keyword">var </span><span class="identifier">previous</span><span class="symbol">: </span><a href="./index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code></td> +</tr> +<tr> +<td> +<p><a href="value.html">value</a></p> +</td> +<td> +<code><span class="keyword">var </span><span class="identifier">value</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</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/-node/next.html b/api/pl.treksoft.kvision.utils/-node/next.html new file mode 100644 index 00000000..6714c772 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-node/next.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Node.next - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Node</a> / <a href="./next.html">next</a><br/> +<br/> +<h1>next</h1> +<a name="pl.treksoft.kvision.utils.Node$next"></a> +<code><span class="keyword">var </span><span class="identifier">next</span><span class="symbol">: </span><a href="index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-node/previous.html b/api/pl.treksoft.kvision.utils/-node/previous.html new file mode 100644 index 00000000..8fe1f1f9 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-node/previous.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Node.previous - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Node</a> / <a href="./previous.html">previous</a><br/> +<br/> +<h1>previous</h1> +<a name="pl.treksoft.kvision.utils.Node$previous"></a> +<code><span class="keyword">var </span><span class="identifier">previous</span><span class="symbol">: </span><a href="index.html"><span class="identifier">Node</span></a><span class="symbol"><</span><a href="index.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">?</span></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/-node/value.html b/api/pl.treksoft.kvision.utils/-node/value.html new file mode 100644 index 00000000..3fecf28a --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-node/value.html @@ -0,0 +1,14 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Node.value - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">Node</a> / <a href="./value.html">value</a><br/> +<br/> +<h1>value</h1> +<a name="pl.treksoft.kvision.utils.Node$value"></a> +<code><span class="keyword">var </span><span class="identifier">value</span><span class="symbol">: </span><a href="index.html#T"><span class="identifier">T</span></a></code> +</BODY> +</HTML> diff --git a/api/pl.treksoft.kvision.utils/index.html b/api/pl.treksoft.kvision.utils/index.html index 32a94802..ff0cd878 100644 --- a/api/pl.treksoft.kvision.utils/index.html +++ b/api/pl.treksoft.kvision.utils/index.html @@ -14,6 +14,17 @@ <tbody> <tr> <td> +<p><a href="-cache/index.html">Cache</a></p> +</td> +<td> +<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> +</td> +</tr> +<tr> +<td> <p><a href="-j-s-o-n/index.html">JSON</a></p> </td> <td> @@ -32,6 +43,22 @@ </tr> <tr> <td> +<p><a href="-linked-list/index.html">LinkedList</a></p> +</td> +<td> +<code><span class="keyword">class </span><span class="identifier">LinkedList</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code></td> +</tr> +<tr> +<td> +<p><a href="-node/index.html">Node</a></p> +</td> +<td> +<code><span class="keyword">class </span><span class="identifier">Node</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code> +<p>Created by gazollajunior on 07/04/16.</p> +</td> +</tr> +<tr> +<td> <p><a href="-object/index.html">Object</a></p> </td> <td> |