c

play.twirl.api

BufferedContent

abstract class BufferedContent[A <: BufferedContent[A]] extends Appendable[A] with Content

Appendable content using a StringBuilder. Either specify elements or text, not both.

Using an Either[TraversableOnce[A], String] impacts performance in an already contentious part of code, so it has been done with both parameters instead.

A

self-type

Self Type
A
Source
Content.scala
Linear Supertypes
Content, Appendable[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BufferedContent
  2. Content
  3. Appendable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BufferedContent(elements: Seq[A], text: String)

    elements

    Sub elements to traverse when creating the resultant string

    text

    Formatted content

Abstract Value Members

  1. abstract def contentType: String

    The default Content type to use for this content.

    The default Content type to use for this content.

    Definition Classes
    Content

Concrete Value Members

  1. def body: String

    The content String.

    The content String.

    Definition Classes
    BufferedContentContent
  2. def equals(obj: Any): Boolean
    Definition Classes
    BufferedContent → AnyRef → Any
  3. def hashCode(): Int
    Definition Classes
    BufferedContent → AnyRef → Any
  4. def toString(): String
    Definition Classes
    BufferedContent → AnyRef → Any