Trait

org.opalj.util

Counting

Related Doc: package util

Permalink

trait Counting extends Locking

A simple class that enable the counting of something.

Examples:

Thread Safety

This class is thread safe.

Linear Supertypes
Locking, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Counting
  2. Locking
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def doGetCount(s: Symbol): Long

    Permalink

    Called by the getCount(Symbol) method.

    Called by the getCount(Symbol) method.

    Thread Safety

    The getCount method takes care of the synchronization.

    Attributes
    protected[this]
  7. def doUpdateCount(s: Symbol, value: Long): Unit

    Permalink

    Called by the updateCount(Symbol, Int) method.

    Called by the updateCount(Symbol, Int) method.

    Thread Safety

    The updateCount method takes care of the synchronization.

    Attributes
    protected[this]
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getCount(s: Symbol): Long

    Permalink

    Returns the overall count that has been summed up with the given symbol s.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def incrementCount(s: Symbol): Unit

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def reset(s: Symbol): Unit

    Permalink

    Resets the overall count of the given symbol.

  20. def resetAll(): Unit

    Permalink

    Resets everything.

    Resets everything. The effect is comparable to creating a new instance, but is more efficient.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def updateCount(s: Symbol, value: Long): Unit

    Permalink

    Updates the count related to the entity identified by the given symbol.

    Updates the count related to the entity identified by the given symbol.

    If the passed value is positive the count will be increased whereas it will be decreased when a negative number is passed.

    s

    Symbol used to correlate values related to the same entity.

    value

    The value that will be added to the entity's current value.

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withReadLock[B](f: ⇒ B): B

    Permalink

    Acquires the read lock associated with this instance and then executes the function f.

    Acquires the read lock associated with this instance and then executes the function f. Afterwards, the lock is released.

    Attributes
    protected[this]
    Definition Classes
    Locking
  28. def withWriteLock[B](f: ⇒ B): B

    Permalink

    Acquires the write lock associated with this instance and then executes the function f.

    Acquires the write lock associated with this instance and then executes the function f. Afterwards, the lock is released.

    Attributes
    protected[this]
    Definition Classes
    Locking

Inherited from Locking

Inherited from AnyRef

Inherited from Any

Ungrouped