Instance Documentation
Info is a buffer of (name,value) tuples, describing all instance properties
Note: There are additional convenience methods like:
def += (name: String, value: A)
def add(name: String, value: A)
which allow adding name/values pairs without tupling
Def
Add name/value at position
Add name/value at position
Adds name and value at given position
- Source
- __.scala
Instance id
Instance id
Id used to identify the instance
It usually includes class name and hash code
- Source
- __.scala
Inherited
Alias for removeAll
Alias for removeAll
Removes all collection elements, which are equal to those in given stream
Returns count of removed elements, which can be 0, 1, or many
- Inherited from
- Mutable
- Source
- Mutable.scala
Alias for remove
Alias for remove
Removes all collection elements, which are equal to the given value
Returns count of removed elements, which can be 0, 1, or many
- Inherited from
- Mutable
- Source
- Mutable.scala
Add array elements
Add array elements
Programms are expected to pass even private sensitive arrays, because this method is final and can be exemined not to abuse the trust
The given arguments specify range of elements to be added.
Whenever possible the adding will be done with bulk copy from given array to buffer array
Remove all streamed
Remove all streamed
Removes all collection elements, which are equal to those in given stream
Returns count of removed elements, which can be 0, 1, or many
- Inherited from
- Mutable
- Source
- Mutable.scala
Replace everything
Replace everything
Discards all old elements and adds all provided elements
- Inherited from
- Mutable
- Source
- Mutable.scala
Reorganizes elements
Reorganizes elements
Reorganizes elements according to the given permutation
val im: Idx.Mutable[Int] = (0 <> 9).~.toBuffer
val p = Idx.Permutation.pairs(3 -> 7, 7 -> 3, 4 -> 6, 6 -> 4)
im.~.tp
im.reposition(p)
im.~.tp
// Output
~(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
~(0, 1, 2, 7, 6, 5, 4, 3, 8, 9)