class StreamingMap[K, V] extends Serializable
A lazy implementation of Map, where the values for each key of type
K
are specified by a function
valueFunc
of type
K => V. This implementation is mutable. If an element
key
is requested and its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
key }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
K => V }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
valueFunc }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
K }}}
valueFunc
of type
K => V. This implementation is mutable. If an element
key
is requested and its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
key }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
K => V }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
valueFunc }}} its value is not yet computed, StreamingMap computes
valueFunc(key)
and stores the result. If the value has already been computed, then its simply returns the stored value.
valueFunc(key) }}} value has already been computed, then its simply returns the stored value.
- K
The parameter type of the keys.
- V
The parameter type of the values.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- StreamingMap
- Serializable
- Serializable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StreamingMap(keys: IndexedSeq[K], valueFunc: (K) ⇒ V)
- keys
A list of keys.
- valueFunc
The function that describes the value for each key. This is assumed to be complete for all keys in
keys
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to any2stringadd[StreamingMap[K, V]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (StreamingMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to ArrowAssoc[StreamingMap[K, V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(key: K): V
Returns the value associated with the key.
Returns the value associated with the key.
- key
The key entry for which the value should be returned.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (StreamingMap[K, V]) ⇒ Boolean, msg: ⇒ Any): StreamingMap[K, V]
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to Ensuring[StreamingMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (StreamingMap[K, V]) ⇒ Boolean): StreamingMap[K, V]
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to Ensuring[StreamingMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): StreamingMap[K, V]
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to Ensuring[StreamingMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): StreamingMap[K, V]
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to Ensuring[StreamingMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to StringFormat[StreamingMap[K, V]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keys: IndexedSeq[K]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (StreamingMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from StreamingMap[K, V] to ArrowAssoc[StreamingMap[K, V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Language Agents Simulation framework
For detailed documentation on using the framework please see the README.md file at the Github repository at https://github.com/markblokpoel/lanag-core.