lucee.Component testbox.system.modules.cbstreams.models.StreamBuilder
This is a static factory class to build CFML Streams
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
Builder
|
builder()
Returns a builder for a Stream. |
Stream
|
new([any collection=''], [any isNumeric='false'], [any predicate=''])
Construct a stream from an incoming collection. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Method Detail |
---|
Returns a builder for a Stream.
Construct a stream from an incoming collection. The supported types are: structs, arrays, lists, and strings. You can also strong type the stream according to the argument. This is useful when doing mathematical operations on the stream.
collection
- This is an optional collection to build a stream on: List, Array, Struct, QueryisNumeric
- This is a shorthand for doing a numeric typed array of values. This will choose a long stream for you by default.predicate
- If you will be doing operations on the stream, you can mark it with a predicate type of: int, long or double. Else we will use generic object streams