scales

utils

package utils

Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. utils
  2. LocalisedFunctions
  3. ConcurrentMapUtils
  4. Paths
  5. Trees
  6. Iteratees
  7. StackUtils
  8. AsBooleanTrait
  9. IterableUtils
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AbstractPathIterator[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], T] extends Iterator[T]

    Provides an Iterator from a given initial path that traverses the entire tree, allows both forwards and backwards iteration.

  2. case class AddAfter[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](newPath: utils.ItemOrTree[Item, Section, CC])(implicit cbf: utils.TreeCBF[Item, Section, CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable

  3. case class AddBefore[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](newPath: utils.ItemOrTree[Item, Section, CC])(implicit cbf: utils.TreeCBF[Item, Section, CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable

  4. case class AppendableWriter(out: Appendable) extends Writer with Product with Serializable

    To provide a writer to LSSerializer (and anything else that wants it _) we need to wrap appendables.

  5. type AsBoolean[T] = (T) ⇒ Boolean

    Definition Classes
    AsBooleanTrait
  6. trait AsBooleanTrait extends AnyRef

    Provides the conversion type class AsBoolean, and simple matchers (extractor builders) to use them.

  7. case class AsIs[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]]() extends FoldOperation[Item, Section, CC] with Product with Serializable

    Use to make it easier to filter out large sets (for those that aren't interesting simply asis them, see tests for use case)

  8. class BooleanAndTMatcher[X, T] extends AnyRef

    Definition Classes
    AsBooleanTrait
  9. class BooleanMatcher[X, T] extends AnyRef

    Definition Classes
    AsBooleanTrait
  10. class CapturedIterator[A] extends Iterator[A]

    Array backed buffer, restart returns the captured data and then rejoins the original iterator

  11. trait CloseOnNeed extends IsClosed

    Mostly exists for pulling but it is general

  12. trait ConcurrentMapUtils extends AnyRef

    Simple helper functions to get and remove ConcurrentLinkedQueues from a ConcurrentHashMap

  13. trait Creator[T] extends AnyRef

    Simple factory interface

  14. class DirectionIterator[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] extends AbstractPathIterator[Item, Section, CC, Path[Item, Section, CC]]

    Iterates over paths using the document order it skips over EndElemS events when going forward and StartElem when reversing, returning just the path.

  15. case class DuplicateFilter[T](orig: Iterable[T])(implicit predicate: Equal[T]) extends Iterable[T] with Product with Serializable

    Remove neighbouring duplicates based on a given predicate (defaults to _ eq _).

  16. class DynVariable[T] extends AnyRef

    Similar to the scala DynamicVariable except that StackedThreadLocal is used and therefore remove is performed after the last pop.

  17. sealed trait EitherLike[+L, +R] extends AnyRef

    Either is great, perfect for what is needed, except for the indirection and the added memory and cpu costs thereof.

  18. class Equiv[A] extends AnyRef

  19. trait Eval[WHAT, RETURN] extends AnyRef

    Evals once, the developer must check its Done, equivalent to a .

  20. trait FlatMapImplicits extends AnyRef

  21. trait FlatMapIterator[+A] extends Iterator[A]

    Backwards compat for 2.

  22. sealed trait FoldError extends AnyRef

  23. sealed trait FoldOperation[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] extends AnyRef

    Represents the base for operations that fold over a list of paths

  24. type FoldR[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] = Either[Path[Item, Section, CC], FoldError]

    Definition Classes
    Paths
  25. case class IAEmpty[+A]() extends ImmutableArrayProxy[A] with Product with Serializable

  26. case class IAOne[+A](one: A) extends ImmutableArrayProxy[A] with Product with Serializable

  27. case class IAThree[+A](one: A, two: A, three: A) extends ImmutableArrayProxy[A] with Product with Serializable

  28. case class IATwo[+A](one: A, two: A) extends ImmutableArrayProxy[A] with Product with Serializable

  29. case class ImmutableArray[+A](base: Array[AnyRef], offset: Int, len: Int) extends ImmutableArrayT[A] with Product with Serializable

    Object arrays are just faster, System.

  30. case class ImmutableArrayAll[+A](base: Array[AnyRef]) extends ImmutableArrayT[A] with Product with Serializable

    Don't add the offset and length, for building a dom this save 8 per elem, only matters for large docs (can save 4mb from 54mb), but can't hurt small ones.

  31. final class ImmutableArrayBuilder[A] extends Builder[A, ImmutableArray[A]]

    Behaves like an ArrayList/ArrayBuffer, growing an internal array as necessary

  32. trait ImmutableArrayProxy[+A] extends IndexedSeq[A] with IndexedSeqOptimized[A, ImmutableArrayProxy[A]] with GenericTraversableTemplate[A, ImmutableArrayProxy]

    Wraps behaviour of ImmutableArray like objects, when the array is greater than 31 it will be swapped to Vector.

  33. case class ImmutableArrayProxyBuilder[A]() extends Builder[A, ImmutableArrayProxy[A]] with Product with Serializable

    Build array first then vector as needed

  34. trait ImmutableArrayT[+A] extends ImmutableArrayProxy[A]

    Object arrays are just faster, System.

  35. trait IsClosed extends AnyRef

  36. type ItemOrSectionWalk[Item, Section] = Either[Item, SectionWalk[Section]]

    badly named the boolean should indicate if it has any children

    badly named the boolean should indicate if it has any children

    Definition Classes
    Trees
  37. type ItemOrTree[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] = EitherLike[Item, Tree[Item, Section, CC]]

    Definition Classes
    Trees
  38. trait IterableUtils extends AnyRef

  39. trait IterableUtilsImplicits extends FlatMapImplicits

  40. trait IterateeImplicits extends AnyRef

  41. trait Iteratees extends AnyRef

    Collection of iterateees

  42. trait LeftLike[+L, +R] extends LeftLikeProjection[L] with EitherLike[L, R]

  43. trait LeftLikeProjection[+L] extends AnyRef

  44. class ListSet[A] extends Iterable[A]

    Based on Scala ListSet, users provide the comparisom operator and comparisom type for lookups.

  45. trait Loaner[T] extends AnyRef

  46. class Localised extends AnyRef

  47. trait LocalisedFunctions extends AnyRef

  48. trait LocalisedImplicits extends AnyRef

  49. sealed trait LogLevel extends AnyRef

    Simple loglevel marker trait

  50. trait Logger extends AnyRef

    Very simple logger, matches scala more.

  51. trait Logs extends AnyRef

    Simple trait for logging.

  52. case class Node[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](index: Int, focus: utils.ItemOrTree[Item, Section, CC]) extends Product with Serializable

    Position in a parent Paths children

  53. sealed trait Once[T] extends AnyRef

    Only created once and via calcOnce

  54. case class Path[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](top: EitherLike[Top[Item, Section, CC], Path[Item, Section, CC]], node: Node[Item, Section, CC])(implicit cbf: CanBuildFrom[CC[_], utils.ItemOrTree[Item, Section, CC], CC[utils.ItemOrTree[Item, Section, CC]]]) extends Iterable[Path[Item, Section, CC]] with RightLike[Top[Item, Section, CC], Path[Item, Section, CC]] with Product with Serializable

  55. class PathFoldCombiner[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] extends AnyRef

    Provide & combinator to pass the result of one fold onto the other, in the case of failure no further joined functions will be called.

  56. type PathFoldR[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] = (Path[Item, Section, CC]) ⇒ FoldR[Item, Section, CC]

    Definition Classes
    Paths
  57. trait PathImplicits extends AnyRef

  58. trait Paths extends AnyRef

    Utility functions for Paths, sorting, moving between Paths, getting to the root etc.

  59. trait Pool[T] extends AnyRef

    Simple pool interface

  60. trait Position[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] extends AnyRef

    Positions only have meaning for a given Path(s).

  61. case class ProxiedCloseOnNeedInputStream(orig: InputStream) extends InputStream with CloseOnNeed with Product with Serializable

    Wrap the InputStream to allow better bracketing etc.

  62. case class ProxiedCloseOnNeedReader(orig: Reader) extends Reader with CloseOnNeed with Product with Serializable

    Wrap the Reader to allow better bracketing etc.

  63. case class Remove[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]]()(implicit cbf: utils.TreeCBF[Item, Section, CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable

  64. case class Replace[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](replaceWith: Iterable[utils.ItemOrTree[Item, Section, CC]])(implicit cbf: utils.TreeCBF[Item, Section, CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable

    Allows replacing one path with many, may be easier to use the * version however

  65. case class ReplaceWith[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](f: (Path[Item, Section, CC]) ⇒ utils.FoldR[Item, Section, CC], wholeTree: Boolean = false)(implicit cbf: utils.TreeCBF[Item, Section, CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable

    Allows foldPositions to be nested, only replace and delete makes sense here (afaict).

  66. case class Resource(locale: () ⇒ Locale = ...)(file: (Class[_], Option[String])) extends Product with Serializable

    Based on the approach taken by Muse and others giving paramaterized messages using XXX as a token to replace.

  67. type ResumableIter[E, A] = IterV[E, (A, IterV[E, _])]

    Definition Classes
    Iteratees
  68. class ResumableIterIterator[E, A, F[_]] extends Iterator[A]

    Definition Classes
    Iteratees
  69. type ResumableIterList[E, A] = IterV[E, (Iterable[A], IterV[E, _])]

    Definition Classes
    Iteratees
  70. trait RightLike[+L, +R] extends RightLikeProjection[R] with EitherLike[L, R]

  71. trait RightLikeProjection[+R] extends AnyRef

  72. trait ScalesUtilsImplicits extends PathImplicits with LocalisedImplicits with IterateeImplicits with IterableUtilsImplicits

    Allows the user to extend a user package object with the scales.

  73. case class SectionWalk[Section](section: Section, hasChildren: Boolean = false, isStart: Boolean = true) extends Product with Serializable

    IF hasChildren then isStart indicates that this particular occurence is the start of the element or the end

  74. trait SimpleUnboundedPool[T] extends Pool[T] with Loaner[T] with Creator[T]

    Thread safe unbounded pool, if more objects are required it will simple create them.

  75. trait StackUtils extends AnyRef

  76. class StackedThreadLocal[T] extends AnyRef

    Mimics ThreadLocalStorage except that the current tls value is the head of a stack.

  77. case class Top[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]]() extends LeftLike[Top[Item, Section, CC], Path[Item, Section, CC]] with Product with Serializable

    Represents the Top for a given Path, there isn't a tree above this

  78. trait Tree[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[C] <: IndexedSeqLike[C, CC[C]]] extends RightLike[Item, Tree[Item, Section, CC]]

  79. type TreeCBF[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]] = CanBuildFrom[CC[_], ItemOrTree[Item, Section, CC], CC[ItemOrTree[Item, Section, CC]]]

    Definition Classes
    Trees
  80. trait Trees extends AnyRef

  81. case class VectorImpl[+A](ar: Vector[A]) extends ImmutableArrayProxy[A] with Product with Serializable

    Proxy Vector.

Value Members

  1. def $(implicit locale: () ⇒ Locale): NumberFormat

    Definition Classes
    LocalisedFunctions
  2. def %(implicit locale: () ⇒ Locale): NumberFormat

    Definition Classes
    LocalisedFunctions
  3. val ALREADY_RESTARTED: String

    Definition Classes
    IterableUtils
  4. object AddedBeforeOrAfterRoot extends FoldError with Product with Serializable

  5. object Debug extends LogLevel with Product with Serializable

  6. object Error extends LogLevel with Product with Serializable

  7. object ImmutableArray extends Serializable

  8. object ImmutableArrayProxy extends SeqFactory[ImmutableArrayProxy]

    Starts an ImmutableArrayProxy and provides the CanBuildFrom

  9. object ImmutableArrayProxyBuilder extends Serializable

  10. object Info extends LogLevel with Product with Serializable

  11. object JavaEnumerationConversions

    See normal Scala lib, its got alot more in nowadays.

  12. object JavaIterableConversions

    General Scala to Iterable converters, allowing for java use.

  13. val LATIN: Charset

    Definition Classes
    LocalisedFunctions
  14. object ListSet extends Serializable

  15. object Loggers

    Contains the logic for getting a logger

  16. object NoPaths extends FoldError with Product with Serializable

  17. object NoSingleRoot extends FoldError with Product with Serializable

  18. object NonLeftP extends LeftLikeProjection[Nothing]

  19. object NonRightP extends RightLikeProjection[Nothing]

  20. val NotSameRoot: Int

    Definition Classes
    Paths
  21. object PathFold

  22. object RandomSequence

    Currently thread safe, java doc issue pending http://bugs.

  23. object RemovedRoot extends FoldError with Product with Serializable

  24. object Replace extends Serializable

  25. object ScalesUtils extends ScalesUtilsImplicits

    Allows importing all scales.

  26. object StackedThreadLocal

  27. object Trace extends LogLevel with Product with Serializable

  28. object Tree

  29. val US_ASCII: Charset

    Definition Classes
    LocalisedFunctions
  30. val UTF_16: Charset

    Definition Classes
    LocalisedFunctions
  31. val UTF_32: Charset

    Definition Classes
    LocalisedFunctions
  32. val UTF_8: Charset

    Definition Classes
    LocalisedFunctions
  33. object Warn extends LogLevel with Product with Serializable

  34. def appendTo(to: Appendable): IterV[CharSequence, CharSequence]

    Append to an appendable, always returns Done for a line, cont for everything else TODO - should it be a pair including the appendable?

    Append to an appendable, always returns Done for a line, cont for everything else TODO - should it be a pair including the appendable?

    Definition Classes
    Iteratees
  35. def boolean[T](it: T)(implicit arg0: (T) ⇒ Boolean): Boolean

    Definition Classes
    AsBooleanTrait
  36. def booleanAndTMatcher[X, T](eval: (X) ⇒ T)(implicit arg0: (T) ⇒ Boolean): BooleanAndTMatcher[X, T]

    Calls eval to return a T t'.

    Calls eval to return a T t'. This T is then evaluated with the AsBoolean type class.

    When evaluated to true (t',x) is returned. val Matcher = booleanMatcher( (x) => T ); val Matcher(t,x) = x

    Definition Classes
    AsBooleanTrait
  37. def booleanMatcher[X, T](eval: (X) ⇒ T)(implicit arg0: (T) ⇒ Boolean): BooleanMatcher[X, T]

    Calls eval to return a T t'.

    Calls eval to return a T t'. This T is then evaluated with the AsBoolean type class.

    When evaluated to true t' is returned. val Matcher = booleanMatcher( (x) => T ); val Matcher(t) = x

    Definition Classes
    AsBooleanTrait
  38. def calcOnce[K, T](key: K, map: ConcurrentHashMap[K, Once[T]])(calc: ⇒ T): T

    Calculates the value once and only once (using a lazy val), returning the result, use this approach for expensive calculations.

    Calculates the value once and only once (using a lazy val), returning the result, use this approach for expensive calculations.

    Definition Classes
    ConcurrentMapUtils
  39. def capture[A](orig: Iterator[A]): CapturedIterator[A]

    Definition Classes
    IterableUtils
  40. def collectFirst[A, B](in: Iterable[A])(f: (A) ⇒ Option[B]): Option[B]

    Collects the first Some

    Collects the first Some

    Definition Classes
    IterableUtils
  41. def comparePathPositions[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path1: Position[Item, Section, CC], path2: Position[Item, Section, CC]): Int

    When paths are not in the same root, they are compared based on the identity hash of the given roots.

    When paths are not in the same root, they are compared based on the identity hash of the given roots. Of course this relies on that function having a decent vm implementation.

    path1
    path2
    returns

    1 if path1 is before path2, -1 if path2 is before path1, 0 if they are the same and NotSameRoot+-1 if they are not in the same root

    Definition Classes
    Paths
  42. def comparePaths[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path1: Path[Item, Section, CC], path2: Path[Item, Section, CC]): (Int, Position[Item, Section, CC], Position[Item, Section, CC])

    When paths are not in the same root, they are compared based on the identity hash of the given roots.

    When paths are not in the same root, they are compared based on the identity hash of the given roots. Of course this relies on that function having a decent vm implementation. See http://www.w3.org/TR/2007/REC-xpath20-20070123/#dt-document-order, tree order must remain constant. Its also a pretty sensible approach for non xml trees.

    path1
    path2
    returns

    1 if path1 is before path2, -1 if path2 is before path1, 0 if they are the same and NotSameRoot+-1 if they are not in the same root

    Definition Classes
    Paths
  43. def comparePathsDirect[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path1: Path[Item, Section, CC], path2: Path[Item, Section, CC]): Boolean

    Helper for comparePaths, will not evaluate position if the paths are equal

    Helper for comparePaths, will not evaluate position if the paths are equal

    Definition Classes
    Paths
  44. def comparePathsP[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path1: (Position[Item, Section, CC], Path[Item, Section, CC]), path2: (Position[Item, Section, CC], Path[Item, Section, CC])): (Int, Position[Item, Section, CC], Position[Item, Section, CC])

    Definition Classes
    Paths
  45. def comparePathsT[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], T](path1: (Position[Item, Section, CC], (T, Path[Item, Section, CC])), path2: (Position[Item, Section, CC], (T, Path[Item, Section, CC]))): (Int, Position[Item, Section, CC], Position[Item, Section, CC])

    Definition Classes
    Paths
  46. final def compareStack(p1: Stack[Int], p2: Stack[Int]): Int

    Definition Classes
    StackUtils
    Annotations
    @tailrec()
  47. def deepestLast[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path: Path[Item, Section, CC]): Path[Item, Section, CC]

    Deepest last child

    Deepest last child

    Definition Classes
    Paths
  48. val defaultCharset: Charset

    A usable default of UTF8 NOT the vm's Charset.

    A usable default of UTF8 NOT the vm's Charset.defaultCharset based on its locale, use vmDefaultCharset for that

    Definition Classes
    LocalisedFunctions
  49. def dropWhile[E](f: (E) ⇒ Boolean): IterV[E, Option[E]]

    drop while iteratee

    drop while iteratee

    Definition Classes
    Iteratees
  50. def equivalent[A, B, C](a: A, b: B)(implicit equiv: Equiv[C], viewA: (A) ⇒ C, viewB: (B) ⇒ C): Boolean

    Are these two parameters (convertable to a C) equal for a given Equiv[C] instance

  51. def error(str: String): Nothing

  52. def evalWith[FROM, TO](f: (FROM) ⇒ TO): IterV[FROM, TO]

    Calls the function param with the fed data and returns its result

    Calls the function param with the fed data and returns its result

    Definition Classes
    Iteratees
  53. def extract[E, A](iter: ResumableIter[E, A]): Option[A]

    Extract the Some(value) from a Done or None if it was not Done.

    Extract the Some(value) from a Done or None if it was not Done.

    Definition Classes
    Iteratees
  54. def extractCont[E, A](iter: ResumableIter[E, A]): ResumableIter[E, A]

    Extract the continuation from a Done

    Extract the continuation from a Done

    Definition Classes
    Iteratees
  55. def filter[E](f: (E) ⇒ Boolean): IterV[E, Iterable[E]]

    filter iteratee, greedily taking all content until eof

    filter iteratee, greedily taking all content until eof

    Definition Classes
    Iteratees
  56. def find[E](f: (E) ⇒ Boolean): IterV[E, Option[E]]

    "find" iteratee, finds Some(first) or None

    "find" iteratee, finds Some(first) or None

    Definition Classes
    Iteratees
  57. final def fold[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], A](a: A)(folder: (ItemOrSectionWalk[Item, Section], A) ⇒ A)(tree: Tree[Item, Section, CC]): A

    Definition Classes
    Trees
  58. def foldI[E, A](f: (E, A) ⇒ A)(init: A): ResumableIter[E, A]

    Stepwise fold, each element is evaluated but each one is returned as a result+resumable iter.

    Stepwise fold, each element is evaluated but each one is returned as a result+resumable iter.

    Definition Classes
    Iteratees
  59. def foldOnDone[E, A, ACC, F[_]](it: F[E])(initAcc: ACC, initResumable: ResumableIter[E, A])(f: (ACC, A) ⇒ ACC)(implicit e: Enumerator[F]): ACC

    Folds over the Iteratee with Cont or Done and Empty, returning with Done and EOF.

    Folds over the Iteratee with Cont or Done and Empty, returning with Done and EOF. If there is a ping pong on enumerator -> Cont -> enumerator then we'll of course get an infinite loop.

    foldI returns a ResumableIter that performs a fold until a done, this folds over the enumerator to return a value.

    combine with onDone to get through chunks of data.

    Definition Classes
    Iteratees
  60. def foldPositions[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](locations: Iterable[Path[Item, Section, CC]])(folder: (Path[Item, Section, CC]) ⇒ FoldOperation[Item, Section, CC])(implicit cbf: TreeCBF[Item, Section, CC], cm: ClassManifest[(Position[Item, Section, CC], Path[Item, Section, CC])]): FoldR[Item, Section, CC]

    Folds over positions within a single path, for example all given children.

    Folds over positions within a single path, for example all given children. As such positions must be calculated.

    Takes the first root, returning Right(NoSingleRoot) if any of the subsequent roots don't match.

    folder retrieves the current path

    Each iteration folds the resulting tree back into the path. As this function must maintain the Path it does not expose the new path root until the result.

    Definition Classes
    Paths
  61. def foldPositions[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], ACC](locations: Iterable[Path[Item, Section, CC]], accumulator: ACC)(folder: (ACC, Path[Item, Section, CC]) ⇒ (ACC, FoldOperation[Item, Section, CC]))(implicit cbf: TreeCBF[Item, Section, CC], cm: ClassManifest[(Position[Item, Section, CC], Path[Item, Section, CC])]): Either[(ACC, Path[Item, Section, CC]), FoldError]

    As per the non accumalating version, folds over positions within a given tree but allows for an additional accumalation.

    As per the non accumalating version, folds over positions within a given tree but allows for an additional accumalation.

    The progress through the document is in reverse document order. This ensures that transformations can always be safely composed, e.g. a delete of a path won't stop changes below it. This, however, implies the developer must also handle any accumalation in "reverse".

    Definition Classes
    Paths
  62. def following[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path: Path[Item, Section, CC]): Option[Path[Item, Section, CC]]

    gets the next following:: sibling in document order

    gets the next following:: sibling in document order

    Definition Classes
    Paths
  63. def getList[K, T](key: K, mapToList: ConcurrentHashMap[K, ConcurrentLinkedQueue[T]]): ConcurrentLinkedQueue[T]

    Definition Classes
    ConcurrentMapUtils
  64. def isDone[E, A](iter: IterV[E, A]): Boolean

    Helper to identify dones

    Helper to identify dones

    Definition Classes
    Iteratees
  65. def isEOF[E, A](iter: IterV[E, A]): Boolean

    Helper for done and eof

    Helper for done and eof

    Definition Classes
    Iteratees
  66. def isEmpty[E, A](iter: IterV[E, A]): Boolean

    Helper for done and empty

    Helper for done and empty

    Definition Classes
    Iteratees
  67. final def item[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](item: Item): ItemOrTree[Item, Section, CC]

    Annotations
    @inline()
  68. def localised(implicit locale: () ⇒ Locale): Localised

    Definition Classes
    LocalisedFunctions
  69. def localisedITexts(texts: Iterable[(String, Seq[Any])])(implicit resource: Resource): Iterable[String]

    Definition Classes
    LocalisedFunctions
  70. def localisedTexts(texts: Iterable[(String, Seq[Any])])(implicit resource: Resource): Iterable[String]

    Definition Classes
    LocalisedFunctions
  71. def mkString[A](itr: Iterable[A], builder: StringBuilder, separator: String)(thunk: (A) ⇒ String): StringBuilder

    Makes a StringBuilder from an iterable using the builder parameter.

    Makes a StringBuilder from an iterable using the builder parameter.

    Definition Classes
    IterableUtils
  72. def moveTo[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path: Path[Item, Section, CC], newPos: Position[Item, Section, CC])(implicit cbf: TreeCBF[Item, Section, CC]): Path[Item, Section, CC]

    Navigates the path until the new position is reached, throws if either its a new root or the position is not reachable

    Navigates the path until the new position is reached, throws if either its a new root or the position is not reachable

    Definition Classes
    Paths
  73. def noPath[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](implicit cbf: TreeCBF[Item, Section, CC]): Path[Item, Section, CC]

    Definition Classes
    Paths
  74. def onDone[E, A](originalList: List[ResumableIter[E, A]]): ResumableIterList[E, A]

    onDone, iterates over the list of iteratees applying the element, when the resulting list contains a Done then the list of Dones is returned.

    onDone, iterates over the list of iteratees applying the element, when the resulting list contains a Done then the list of Dones is returned.

    One can use tuples or pattern matching to discern which of the original lists iteratees have matched.

    Due to the return type of this iteratee all items in the list must return the same type and must return both an A and an IterV with the same interface to continue with the next and maintain state.

    In the case of EOF, an empty list is returned

    Definition Classes
    Iteratees
  75. final def one[T](i: T): List[T]

    Annotations
    @inline()
  76. def positions[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](paths: Iterable[Path[Item, Section, CC]]): Iterable[(Position[Item, Section, CC], Path[Item, Section, CC])]

    Obtain the positions for the paths

    Obtain the positions for the paths

    Definition Classes
    Paths
  77. def positionsT[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], T](paths: Iterable[(T, Path[Item, Section, CC])]): Iterable[(Position[Item, Section, CC], (T, Path[Item, Section, CC]))]

    positions with tuples (T, Path)

    positions with tuples (T, Path)

    Definition Classes
    Paths
  78. def preceding[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path: Path[Item, Section, CC]): Option[Path[Item, Section, CC]]

    gets the next preceding:: sibling equivalent in document order, unlike XPath preceding:: it does not exclude parents

    gets the next preceding:: sibling equivalent in document order, unlike XPath preceding:: it does not exclude parents

    Definition Classes
    Paths
  79. def removeList[K, T](key: K, mapToList: ConcurrentHashMap[K, ConcurrentLinkedQueue[T]]): ConcurrentLinkedQueue[T]

    Definition Classes
    ConcurrentMapUtils
  80. def removeOr[K, T](key: K, map: ConcurrentHashMap[K, T])(newT: ⇒ T): T

    Removes the value, returning either it or a new item (stops end code worrying about nulls etc.

    Removes the value, returning either it or a new item (stops end code worrying about nulls etc..

    Definition Classes
    ConcurrentMapUtils
  81. def resource(a: AnyRef, path: String): URL

    Simple grabber of resources

  82. def rootPath[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](path: Path[Item, Section, CC]): Path[Item, Section, CC]

    Returns the root path for its input, uses zipUp to ensure changes are kept

    Returns the root path for its input, uses zipUp to ensure changes are kept

    Definition Classes
    Paths
  83. def runningCount[E]: ResumableIter[E, Long]

    keeps a running count of each element, probably not of much use unless combined but acts as a good poc for ResumableIter

    keeps a running count of each element, probably not of much use unless combined but acts as a good poc for ResumableIter

    Definition Classes
    Iteratees
  84. def sameBase(test: Stack[Int], against: Stack[Int]): Boolean

    Definition Classes
    StackUtils
  85. def sort[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](paths: Iterable[Path[Item, Section, CC]], isDescending: Boolean)(implicit cm: ClassManifest[(Position[Item, Section, CC], Path[Item, Section, CC])]): Iterable[Path[Item, Section, CC]]

    Sorts according to position of each path item, descending or descending based on a depth first then rightwise order.

    Sorts according to position of each path item, descending or descending based on a depth first then rightwise order.

    Definition Classes
    Paths
  86. def sortPositions[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](paths: Iterable[Path[Item, Section, CC]], isDescending: Boolean)(implicit cm: ClassManifest[(Position[Item, Section, CC], Path[Item, Section, CC])]): Iterable[(Position[Item, Section, CC], Path[Item, Section, CC])]

    Sorts according to position of each path item, descending or descending based on a depth first then rightwise order.

    Sorts according to position of each path item, descending or descending based on a depth first then rightwise order.

    Definition Classes
    Paths
  87. def sortPositionsT[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], T](paths: Iterable[(T, Path[Item, Section, CC])], isDescending: Boolean)(implicit cm: ClassManifest[(Position[Item, Section, CC], (T, Path[Item, Section, CC]))]): Iterable[(Position[Item, Section, CC], (T, Path[Item, Section, CC]))]

    sortPositions with a tuple T, Path

    sortPositions with a tuple T, Path

    Definition Classes
    Paths
  88. def sortT[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]], T](paths: Iterable[(T, Path[Item, Section, CC])], isDescending: Boolean)(implicit cm: ClassManifest[(Position[Item, Section, CC], (T, Path[Item, Section, CC]))]): Iterable[(T, Path[Item, Section, CC])]

    sort with a tuple T, Path

    sort with a tuple T, Path

    Definition Classes
    Paths
  89. final def subtree[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[A] <: IndexedSeqLike[A, CC[A]]](section: Section, children: CC[ItemOrTree[Item, Section, CC]])(implicit cbf: TreeCBF[Item, Section, CC]): ItemOrTree[Item, Section, CC]

    Annotations
    @inline()
  90. def toPositionalEqual[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]]: Equal[Path[Item, Section, CC]]

    Provides an instance of the Equal type class for positional Equality

    Provides an instance of the Equal type class for positional Equality

    Definition Classes
    Paths
  91. implicit def toResumableIter[E, A](oiter: IterV[E, A]): ResumableIter[E, A]

    Converts a normal IterV[E,A] to a ResumableIter.

    Converts a normal IterV[E,A] to a ResumableIter.

    Does so by folding over the iter once for an input and when its Done starting again with the original iter. This is close to restarting the iter on a new "stream", otherwise all attempts to keep the Cont will be made.

    Definition Classes
    Iteratees
  92. def top[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[X] <: IndexedSeqLike[X, CC[X]]](tree: Tree[Item, Section, CC])(implicit cbf: TreeCBF[Item, Section, CC]): Path[Item, Section, CC]

    Definition Classes
    Paths
  93. def valueOf[K, T](key: K, map: ConcurrentHashMap[K, T])(newT: ⇒ T): T

    retrieves the value of a concurrent hashmap against a given key, creating if necessary.

    retrieves the value of a concurrent hashmap against a given key, creating if necessary. Note it makes no gaurantee of once only semantics for the value generation

    Definition Classes
    ConcurrentMapUtils
  94. val vmDefaultCharset: Charset

    The jvm's default charset, based on system/machine/locale

    The jvm's default charset, based on system/machine/locale

    Definition Classes
    LocalisedFunctions
  95. def withIter[E, A, F[_]](it: F[E])(initResumable: ResumableIter[E, A])(implicit e: Enumerator[F]): ResumableIterIterator[E, A, F]

    Converts the iteratee/enumerator/source triple into a Iterator

    Converts the iteratee/enumerator/source triple into a Iterator

    Definition Classes
    Iteratees

Deprecated Value Members

  1. object IterableConversions

    Alot of this has since been included in the Scala standard lib, as such its pretty much unused, included incase.

Inherited from LocalisedFunctions

Inherited from ConcurrentMapUtils

Inherited from Paths

Inherited from Trees

Inherited from Iteratees

Inherited from StackUtils

Inherited from AsBooleanTrait

Inherited from IterableUtils

Inherited from AnyRef

Inherited from Any

Ungrouped