scalax.control

class ManagedSequence

[source: scalax/control/ManagedSequence.scala]

abstract class ManagedSequence[+A]
extends scala.PartialFunction[Int, A]
A class which is approximately isomorphic to Seq, but which manages the lifecycle of the underlying data source, and is generally non-strict.
Direct Known Subclasses:
CsvFile, KeyValueFile

Type Summary
abstract type Handle
Value Summary
abstract val resource : ManagedResource[Handle]
Method Summary
def ++ [B >: A](that : scala.Seq[B]) : ManagedSequence[B]
def ++ [B >: A](that : ManagedSequence[B]) : ManagedSequence[B]
protected def apply (v : Handle, i : Int) : A
def apply (i : Int) : A
def contains (e : Any) : Boolean
def containsSlice (that : scala.Seq[Any]) : Boolean
def copyToArray [B >: A](arr : scala.Array[B], start : Int) : Unit
def copyToBuffer [B >: A](buf : scala.collection.mutable.Buffer[B]) : Unit
def drop (n : Int) : ManagedSequence[A]
def dropWhile (f : (A) => Boolean) : ManagedSequence[A]
def elements : ManagedResource[scala.Iterator[A]]
def endsWith (that : scala.Seq[Any]) : Boolean
def exists (f : (A) => Boolean) : Boolean
def filter (f : (A) => Boolean) : ManagedSequence[A]
def find (f : (A) => Boolean) : scala.Option[A]
def findIndexOf (f : (A) => Boolean) : Int
def first : A
def firstOption : scala.Option[A]
def flatMap [B](f : (A) => scala.Iterable[B]) : ManagedSequence[B]
def foldLeft [B](z : B)(op : (B, A) => B) : B
def foldRight [B](z : B)(op : (A, B) => B) : B
def forall (f : (A) => Boolean) : Boolean
def foreach (f : (A) => Unit) : Unit
def head : A
def headOption : scala.Option[A]
def indexOf (that : scala.Seq[Any]) : Int
def indexOf (e : Any) : Int
def isDefinedAt (i : Int) : Boolean
def isEmpty : Boolean
protected abstract def iterator (v : Handle) : scala.Iterator[A]
def last : A
def lastIndexOf (e : Any) : Int
def lastOption : scala.Option[A]
protected def length (v : Handle) : Int
def length : Int
def map [B](f : (A) => B) : ManagedSequence[B]
def mkString : java.lang.String
def mkString (sep : java.lang.String) : java.lang.String
def mkString (start : java.lang.String, sep : java.lang.String, end : java.lang.String) : java.lang.String
def reduceLeft [B >: A](op : (B, B) => B) : B
def reduceRight [B >: A](op : (B, B) => B) : B
def reverse : scala.List[A]
def sameElements (that : ManagedSequence[Any]) : Boolean
def sameElements (that : scala.Iterable[Any]) : Boolean
def slice (from : Int, until : Int) : ManagedSequence[A]
def startsWith (that : scala.Seq[Any]) : Boolean
protected def stringPrefix : java.lang.String
def take (n : Int) : ManagedSequence[A]
def takeWhile (f : (A) => Boolean) : ManagedSequence[A]
def toArray [B >: A] : scala.Array[B]
def toList : scala.List[A]
override def toString : java.lang.String
Returns a string representation of the object.
Methods inherited from scala.PartialFunction
scala.PartialFunction.orElse, scala.PartialFunction.andThen
Methods inherited from scala.Function1
scala.Function1.compose
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type Handle

Value Details
abstract val resource : ManagedResource[Handle]

Method Details
protected abstract def iterator(v : Handle) : scala.Iterator[A]

protected def length(v : Handle) : Int

protected def apply(v : Handle, i : Int) : A

def elements : ManagedResource[scala.Iterator[A]]

def length : Int

def isEmpty : Boolean

def apply(i : Int) : A

def last : A

def lastOption : scala.Option[A]

@scala.deprecated

def head : A

def first : A

@scala.deprecated

def headOption : scala.Option[A]

def firstOption : scala.Option[A]

def ++[B >: A](that : ManagedSequence[B]) : ManagedSequence[B]

def ++[B >: A](that : scala.Seq[B]) : ManagedSequence[B]

def isDefinedAt(i : Int) : Boolean
Overrides
scala.PartialFunction.scala.PartialFunction.isDefinedAt

def lastIndexOf(e : Any) : Int

def map[B](f : (A) => B) : ManagedSequence[B]

def flatMap[B](f : (A) => scala.Iterable[B]) : ManagedSequence[B]

def filter(f : (A) => Boolean) : ManagedSequence[A]

def take(n : Int) : ManagedSequence[A]

def drop(n : Int) : ManagedSequence[A]

def slice(from : Int, until : Int) : ManagedSequence[A]

def takeWhile(f : (A) => Boolean) : ManagedSequence[A]

def dropWhile(f : (A) => Boolean) : ManagedSequence[A]

def reverse : scala.List[A]

def contains(e : Any) : Boolean

def toArray[B >: A] : scala.Array[B]

def startsWith(that : scala.Seq[Any]) : Boolean

def endsWith(that : scala.Seq[Any]) : Boolean

def indexOf(that : scala.Seq[Any]) : Int

def containsSlice(that : scala.Seq[Any]) : Boolean

def foreach(f : (A) => Unit) : Unit

def forall(f : (A) => Boolean) : Boolean

def exists(f : (A) => Boolean) : Boolean

def find(f : (A) => Boolean) : scala.Option[A]

def findIndexOf(f : (A) => Boolean) : Int

def indexOf(e : Any) : Int

def foldLeft[B](z : B)(op : (B, A) => B) : B

def foldRight[B](z : B)(op : (A, B) => B) : B

def reduceLeft[B >: A](op : (B, B) => B) : B

def reduceRight[B >: A](op : (B, B) => B) : B

def copyToBuffer[B >: A](buf : scala.collection.mutable.Buffer[B]) : Unit

def sameElements(that : scala.Iterable[Any]) : Boolean

def sameElements(that : ManagedSequence[Any]) : Boolean

def toList : scala.List[A]

def mkString(start : java.lang.String, sep : java.lang.String, end : java.lang.String) : java.lang.String

def mkString(sep : java.lang.String) : java.lang.String

def mkString : java.lang.String

def copyToArray[B >: A](arr : scala.Array[B], start : Int) : Unit

protected def stringPrefix : java.lang.String

override def toString : java.lang.String
Returns a string representation of the object.

The default representation is platform dependent.

Returns
a string representation of the object.



Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.