t

Idx.O.A.Base

trait Base[A] extends Idx.O[A] with Any.Ref.Extra.Event1 with Any.Ref.Extra.Observable with Any.Ref.Extra

Ordering
  1. Alphabetic
Inherited
  1. Base
  2. Any.Ref.Extra
  3. Any.Ref.Extra.Observable
  4. Any.Ref.Extra.Event1
  5. Any.Ref.Extra.Event.Like
  6. Any.Ref.Extra.Like
  7. Idx.O
  8. Any.Collection.O
  9. Any.O
  10. Idx
  11. Any.Collection
  12. scala.AnyRef
  13. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type

  1. type Base.CHANGE = Idx.O.Change[A]
    Attributes
    protected
    Definition Classes
    _Trait_Trait

Method

  1. def all: ~[A]

    Returns a Stream of all elements

    Returns a Stream of all elements

    The element order is same as in the Idx.

    val index = Idx.*(1,3,5,7)
    index.all.lp
    // Output
    ~(1, 3, 5, 7)
    Definition Classes
    _Trait_Trait
  2. abstract def apply(idx: Int): A

    Returns element at position

    Returns element at position

    idx

    element position, must be in range (0 <>> size)

    val index = Idx.*(1,4,7,10)
    index(1).lp  // Prints: 4
    index(3).lp  // Prints: 10
    Definition Classes
    _Trait
  3. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  4. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  5. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  6. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. def fireChange(c: Idx[Idx.O.Change[A]]): Unit
    Attributes
    protected
    Definition Classes
    Base
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  14. abstract def size: Int

    Number of elements

    Number of elements

    Readily available, not calculated element count

    Idx.*(1,3,5,7).size.lp  // Prints: 4
    Definition Classes
    _Trait
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any

Event

  1. def onChange(on: (Idx[Idx.O.Change[A]]) ⇒ Any): EventControl

    Change Event

    Change Event

    Subscribes listener to be notified of all changes

    val c = Any.Collection.OM.make[Int]
    
    c.onChange(_.all tp "Event: ")
    
    c add 99
    c +~= 0 <> 5
    c =-~ 3 <> 5
    
    c.all.lp
    
    // Output
    Event: ---- ----
           name item
           ---- ----
           Add  99
           ---- ----
    Event: ---- ----
           name item
           ---- ----
           Add  0
           Add  1
           Add  2
           Add  3
           Add  4
           Add  5
           ---- ----
    Event: ------ ----
           name   item
           ------ ----
           Remove 3
           Remove 4
           Remove 5
           ------ ----
    ~(2, 1, 0, 99)
    Definition Classes
    Base_Trait_Trait
  2. def onObservableChange(f: () ⇒ Any): EventControl

    On change event

    On change event

    This is the most general event indicating a change

    Usually an object will have other more usable events, but they will also trigger this one

    The method is protected in order not to pollute application name space

    This event will likely be used by GUI controls, which will call it through the 'library'

    Attributes
    protected
    Definition Classes
    _Trait_Trait

Hidden

  1. def _addEntry(scope: AnyRef, value: Any): EventControl

    Creates entry

    Creates entry

    Adds new entry to the list

    Returns EventControl, a fancy interface to remove entry.

    Attributes
    protected[scalqa.Any.Ref.Extra]
    Definition Classes
    _TraitLike
  2. def _allEntries(scope: AnyRef): ~[Any.Ref.Extra.Entry]

    Enries stream

    Enries stream

    Provides stream of entries only for the specified scope.

    Attributes
    protected[scalqa.Any.Ref.Extra]
    Definition Classes
    _Trait
  3. def _change(f: (Idx.O.Change.Builder[A]) ⇒ Any): Idx.O.Change.Builder[A]
    Attributes
    protected
    Definition Classes
    Base
  4. def _entriesDescription: String

    Description

    Description

    String description, mostly for debugging.

    Attributes
    protected[scalqa.Any.Ref.Extra]
    Definition Classes
    _Trait
  5. def _fireEvent1[P1](scope: AnyRef, p1: P1): Int
    Attributes
    protected
    Definition Classes
    Event1
  6. def _hasListeners: Boolean
    Attributes
    protected
    Definition Classes
    Base
  7. def _isNoEntries: Boolean

    Empty check

    Empty check

    Returns true if there is no entries for all scopes

    Attributes
    protected[scalqa.Any.Ref.Extra]
    Definition Classes
    _Trait
  8. def _onAddEntry(scope: AnyRef, on: (Any.Ref.Extra.Entry) ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Observable
  9. def _onAddFirstEntryRun(scope: AnyRef, on: ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Observable
  10. def _onEvent1[P1](scope: AnyRef, f: (P1) ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Event1
  11. def _onRemoveEntry(scope: AnyRef, on: (Any.Ref.Extra.Entry) ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Observable
  12. def _onRemoveLastEntryRun(scope: AnyRef, on: ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Observable
  13. def _onStartListening(on: ⇒ Any): EventControl
    Attributes
    protected
    Definition Classes
    Base