Skip to content

0.1.4

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jan 22:20
· 3 commits to master since this release
b2a402c

New Features

Method stream won't return an infinite stream

Static method stream of Modelers will return a limited stream of items instead of infinite one.

Now we have two overloads of stream methods:

var streamFoo = XXXModeler.stream();    
// streamFoo will yield a limited random number of items

var streamBar = XXXModeler.stream(5);
// streamBar will yield 5 items

Bug Fix

Tolerate constructor exceptions

EasyModeling will search for available constructors to create instances.
When one constructor throws during constructing instance,
EasyModeling will fall back to the next available one.
When all available constructors threw,
EasyModeling will stop creating instances of the specific class.

Inner classes will not cause errors

EasyModeling will ignore the generation of modelers for inner classes.
However, inner classes will still not be supported.
I'm still working on supporting inner classes.