Package

com.eharmony.aloha

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. case class BooleanSeq(values: Vector[Boolean]) extends SimpleTypeSeq with Product with Serializable

    Permalink
  2. case class DoubleSeq(values: Vector[Double]) extends SimpleTypeSeq with Product with Serializable

    Permalink
  3. trait EitherHelpers extends AnyRef

    Permalink
  4. case class ICList[A](list: List[A]) extends Product with Serializable

    Permalink

    A class that acts like an immutable list but allows disparate element types to be inserted as long as an implicit function from the input type to the list type exists in the implicit scope.

    A class that acts like an immutable list but allows disparate element types to be inserted as long as an implicit function from the input type to the list type exists in the implicit scope.

    Typical usage will be like:

    import java.io.InputStream
    def getInputStream(i: Int) = new java.io.ByteArrayInputStream(i.toString.getBytes)
    
    implicit val stringToInt = (_:String).toInt
    implicit val isToInt = (is: InputStream) => stringToInt(io.Source.fromInputStream(is).getLines.mkString("\n"))
    
    // Construct a list of Int from things we can convert to Ints from translation functions that are in scope.
    // NOTICE: Because of implicitConversionListToList, we get implicit conversion to lists.
    val lst: List[Int] = (1 :: getInputStream(2) :: "3" :: ICList.empty[Int])
    
    require(lst.isInstanceOf[List[Int]] && (1 to 3) == lst, "lst should be List(1,2,3)")

    Note: We use implicit functions rather than view bounds because of conflicts with method conforms in object Predef of type [A]=> <:<[A,A] for certain types.

    A

    the list type

    list

    a contained list backing the ICList.

  5. trait Logging extends AnyRef

    Permalink

    Mix the Logging trait into a class to get:

    Mix the Logging trait into a class to get:

    • protected Logging methods
    • protected A org.slf4j.Logger object, accessible via the logger property.
  6. case class LongSeq(values: Vector[Long]) extends SimpleTypeSeq with Product with Serializable

    Permalink
  7. sealed trait SerializabilityEvidence[A] extends AnyRef

    Permalink

    A type class used to indicate a parameter has a type that can be serialized in a larger Serializable object.

  8. sealed trait SimpleTypeSeq extends AnyRef

    Permalink
  9. case class StringSeq(values: Vector[String]) extends SimpleTypeSeq with Product with Serializable

    Permalink
  10. trait Timing extends AnyRef

    Permalink

Value Members

  1. object BooleanSeq extends Serializable

    Permalink
  2. object DoubleSeq extends Serializable

    Permalink
  3. object ICList extends Serializable

    Permalink

  4. object LongSeq extends Serializable

    Permalink
  5. object SerializabilityEvidence

    Permalink
  6. object SimpleTypeSeq

    Permalink
  7. object StringSeq extends Serializable

    Permalink
  8. object SubSeqIterator

    Permalink

    A fast, thread-safe, memory efficient k-subsequence iterator.

    A fast, thread-safe, memory efficient k-subsequence iterator.

    See [http://deaktator.github.io/ Ryan Deak]'s post on [http://deaktator.github.io/2015/08/13/k-length-subsequences/ K-length Subsequences] for details.

  9. package hashing

    Permalink
  10. package rand

    Permalink

Ungrouped