class Foldable extends WithPlainText[Foldable]
A class designed for accumulating the values in a hash using a fold.
This class attempts to enforce ordered digest creation by rendering each instance unusable the each time you add a value. Adding a value then returns a new instance, which must be used for adding more data.
Presenting an API like this allows for more efficient code, while still maintaining an outwardly immutable API. It also helps prevent race conditions by ensuring continued forward motion.
- Alphabetic
- By Inheritance
- Foldable
- WithPlainText
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(value: PlainText): Foldable
Add a value to this fodable
Add a value to this fodable
- Definition Classes
- Foldable → WithPlainText
-
def
apply(value: Source): Foldable
Constructor for accepting Sources.
Constructor for accepting Sources.
- Definition Classes
- WithPlainText
-
def
apply(value: Source, encoding: Codec): Foldable
Constructor for accepting Sources.
Constructor for accepting Sources.
- Definition Classes
- WithPlainText
-
def
apply(value: Reader): Foldable
Constructor for accepting Readers.
Constructor for accepting Readers.
- Definition Classes
- WithPlainText
-
def
apply(value: File): Foldable
Constructor for accepting a File
Constructor for accepting a File
- Definition Classes
- WithPlainText
-
def
apply(value: InputStream): Foldable
Constructor for accepting an InputStream.
Constructor for accepting an InputStream.
- Definition Classes
- WithPlainText
-
def
apply(value: StringBuilder): Foldable
Constructor for accepting StringBuilders.
Constructor for accepting StringBuilders.
- Definition Classes
- WithPlainText
-
def
apply(value: String): Foldable
Constructor for accepting strings.
Constructor for accepting strings.
- Definition Classes
- WithPlainText
-
def
apply(value: Array[Byte]): Foldable
Constructor for accepting Byte arrays.
Constructor for accepting Byte arrays.
- Definition Classes
- WithPlainText
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
done: Digest
Mark that everything has been added to this foldable.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )