com.metamx.common.scala

Walker

trait Walker[+A] extends AnyRef

Walkers provide a mechanism for walking through an underlying listish thing, exposed as a "foreach" method. They do not return iterators, nor do they allow random access. This allows them to guarantee post-iteration cleanup actions on the underlying resource, which will occur even if exceptions are thrown while walking.

Walkers can be constructed such that the "foreach" method can only be called once. In that case, subsequent calls should throw an IllegalStateException. Walkers can also be constructed with "foreach" methods that can be called multiple times. In that case, each run should create and then clean up the resource-- saving state across runs is usually counterproductive.

Self Type
Walker[A]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Walker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def foreach(f: (A) ⇒ Unit): Unit

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++[B >: A](other: Walker[B]): Walker[B]

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def filter(p: (A) ⇒ Boolean): Walker[A]

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (A) ⇒ GenTraversableOnce[B]): Walker[B]

  14. def foldLeft[B](zero: B)(combine: (B, A) ⇒ B): B

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def map[B](f: (A) ⇒ B): Walker[B]

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def size: Long

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

    Definition Classes
    AnyRef
  24. def toList: List[A]

  25. def toSet[B >: A]: Set[B]

  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withFilter(p: (A) ⇒ Boolean): Walker[A]

Inherited from AnyRef

Inherited from Any

Ungrouped