From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api1/pl.treksoft.kvision.utils/-cache/-init-.html | 17 +++++ api1/pl.treksoft.kvision.utils/-cache/get.html | 16 +++++ api1/pl.treksoft.kvision.utils/-cache/index.html | 78 ++++++++++++++++++++++ api1/pl.treksoft.kvision.utils/-cache/set.html | 16 +++++ .../-cache/to-string.html | 14 ++++ 5 files changed, 141 insertions(+) create mode 100644 api1/pl.treksoft.kvision.utils/-cache/-init-.html create mode 100644 api1/pl.treksoft.kvision.utils/-cache/get.html create mode 100644 api1/pl.treksoft.kvision.utils/-cache/index.html create mode 100644 api1/pl.treksoft.kvision.utils/-cache/set.html create mode 100644 api1/pl.treksoft.kvision.utils/-cache/to-string.html (limited to 'api1/pl.treksoft.kvision.utils/-cache') diff --git a/api1/pl.treksoft.kvision.utils/-cache/-init-.html b/api1/pl.treksoft.kvision.utils/-cache/-init-.html new file mode 100644 index 00000000..05af599a --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/-cache/-init-.html @@ -0,0 +1,17 @@ + + + +Cache.<init> - kvision + + + +kvision / pl.treksoft.kvision.utils / Cache / <init>
+
+

<init>

+ +Cache(capacity: Int = 50) +

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).

+ + diff --git a/api1/pl.treksoft.kvision.utils/-cache/get.html b/api1/pl.treksoft.kvision.utils/-cache/get.html new file mode 100644 index 00000000..c6cb9816 --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/-cache/get.html @@ -0,0 +1,16 @@ + + + +Cache.get - kvision + + + +kvision / pl.treksoft.kvision.utils / Cache / get
+
+

get

+ +operator fun get(key: K): V? +

HashMap get is O(1). +More info: https://stackoverflow.com/a/4578039/2085356

+ + diff --git a/api1/pl.treksoft.kvision.utils/-cache/index.html b/api1/pl.treksoft.kvision.utils/-cache/index.html new file mode 100644 index 00000000..15c207b0 --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/-cache/index.html @@ -0,0 +1,78 @@ + + + +Cache - kvision + + + +kvision / pl.treksoft.kvision.utils / Cache
+
+

Cache

+class Cache<K, V> +

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).

+

Constructors

+ + + + + + + +
+

<init>

+
+Cache(capacity: Int = 50) +

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).

+
+

Functions

+ + + + + + + + + + + + + + + +
+

get

+
+operator fun get(key: K): V? +

HashMap get is O(1). +More info: https://stackoverflow.com/a/4578039/2085356

+
+

set

+
+operator fun set(key: K, value: V): K? +

HashMap put and remove is O(1). +More info: https://stackoverflow.com/a/4578039/2085356

+
+

toString

+
+fun toString(): String
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + diff --git a/api1/pl.treksoft.kvision.utils/-cache/set.html b/api1/pl.treksoft.kvision.utils/-cache/set.html new file mode 100644 index 00000000..1d3c6baa --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/-cache/set.html @@ -0,0 +1,16 @@ + + + +Cache.set - kvision + + + +kvision / pl.treksoft.kvision.utils / Cache / set
+
+

set

+ +operator fun set(key: K, value: V): K? +

HashMap put and remove is O(1). +More info: https://stackoverflow.com/a/4578039/2085356

+ + diff --git a/api1/pl.treksoft.kvision.utils/-cache/to-string.html b/api1/pl.treksoft.kvision.utils/-cache/to-string.html new file mode 100644 index 00000000..cd476dfd --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/-cache/to-string.html @@ -0,0 +1,14 @@ + + + +Cache.toString - kvision + + + +kvision / pl.treksoft.kvision.utils / Cache / toString
+
+

toString

+ +fun toString(): String + + -- cgit