Object/Trait

net.liftweb.util

ListHelpers

Related Docs: trait ListHelpers | package util

Permalink

object ListHelpers extends ListHelpers

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ListHelpers
  2. ListHelpers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class ListMapish extends AnyRef

    Permalink

    This class add a case insensitive get to a List of Pairs of String, as if it was a Map

    This class add a case insensitive get to a List of Pairs of String, as if it was a Map

    Definition Classes
    ListHelpers
  2. implicit class SuperList[T] extends AnyRef

    Permalink

    Add utility methods to Lists

    Add utility methods to Lists

    Definition Classes
    ListHelpers

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 delta[T, Res](old: Seq[T], newList: Seq[T])(f: (DeltaInfo[T]) ⇒ Res): List[Res]

    Permalink

    Compute the deltas between two sequences of a given type.

    Compute the deltas between two sequences of a given type. Apply the function based on the differences between the two lists. The resulting List of commands will be returned. The algorithm used to calculate the diffs is not very efficient and can degrade to O(n^2), so it's not great for large collections. Internally the Seq[T] are converted to a List[T]. Finally, it's highly recommended that T be immutable and does proper equals testing (e.g., a case class).

    Definition Classes
    ListHelpers
  7. def delta[T, Res](old: Box[Seq[T]], newList: Seq[T])(f: (DeltaInfo[T]) ⇒ Res): List[Res]

    Permalink

    Compute the deltas between two sequences of a given type.

    Compute the deltas between two sequences of a given type. Apply the function based on the differences between the two lists. The resulting List of commands will be returned.

    Definition Classes
    ListHelpers
  8. def enumToList[T](enum: Enumeration[T]): List[T]

    Permalink

    Convert a java.util.Enumeration to a List[T]

    Convert a java.util.Enumeration to a List[T]

    Definition Classes
    ListHelpers
  9. def enumToStringList[C](enum: Enumeration[C]): List[String]

    Permalink

    Convert a java.util.Enumeration to a List[String] using the toString method on each element

    Convert a java.util.Enumeration to a List[String] using the toString method on each element

    Definition Classes
    ListHelpers
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def first[B, C](in: Seq[B])(_f: (B) ⇒ Box[C]): Box[C]

    Permalink

    Returns the first application of f to an element of in that results in a Full Box.

    Returns the first application of f to an element of in that results in a Full Box. If f applied to an element of in results in an Empty Box, then f will be applied to the rest of the elements of in until a Full Box results. If the list runs out then an Empty Box is returned.

    in

    a list of elements to which f can be applied

    returns

    a Box containing the first Full Box or Empty if f never returns a Full Box

    Definition Classes
    ListHelpers
  14. def first_?[B](in: Seq[B])(f: ⇒ (B) ⇒ Boolean): Box[B]

    Permalink

    Returns a Full Box with the first element x of the list in for which f(x) evaluates to true.

    Returns a Full Box with the first element x of the list in for which f(x) evaluates to true. If f(x) evaluates to false for every x, then an Empty Box is returned.

    in

    a list of elements to which f can be applied

    f

    a function that can be applied to elements of in

    returns

    a Box containing the found element (or Empty if not found)

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def head[T](l: Seq[T], deft: ⇒ T): T

    Permalink

    Return the first element of a List or a default value if the list is empty

    Return the first element of a List or a default value if the list is empty

    Definition Classes
    ListHelpers
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def listIf[T](expr: Boolean)(f: ⇒ T): List[T]

    Permalink

    Return a list containing the element f if the expression is true

    Return a list containing the element f if the expression is true

    Definition Classes
    ListHelpers
  20. implicit def listToListMapish(in: Seq[(String, String)]): ListMapish

    Permalink

    adds the ciGet method to a List of Pairs of Strings

    adds the ciGet method to a List of Pairs of Strings

    Definition Classes
    ListHelpers
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def permuteList[T](in: Seq[T]): List[List[T]]

    Permalink

    Given a list, return all the permutations of the list.

    Given a list, return all the permutations of the list.

    in

    -- the list

    returns

    all the permutations of the list

    Definition Classes
    ListHelpers
  25. def permuteWithSublists[T](in: Seq[T]): List[List[T]]

    Permalink

    Given a list, return all the permutations including the removal of items (does not return a Nil list unless in is Nil).

    Given a list, return all the permutations including the removal of items (does not return a Nil list unless in is Nil).

    in

    the list to permute

    returns

    all the permutations of the list including sublists, sorted in longest to shortest

    Definition Classes
    ListHelpers
  26. def rotateList[T](in: Seq[T]): List[List[T]]

    Permalink

    Given an incoming list, return a set of lists that is the original list rotated through all its positions

    Given an incoming list, return a set of lists that is the original list rotated through all its positions

    in

    the list to rotate

    returns

    all the rotations of the list

    Definition Classes
    ListHelpers
  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ListHelpers

Inherited from AnyRef

Inherited from Any

Ungrouped