You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I always have to set the size, and also there is a static field which contain a default. I think that it should be consistent like integer like this:
RDG.String().next()
The text was updated successfully, but these errors were encountered:
makes sense to me too (was actually surprised we didn't do this!) good catch, thank you.
I think the proper solution though is for all the no-arg methods to return next() from a private static default Generator.
So we'd add a new method string() that would return the string field (that is/should be private final) that is currently there (as per the original issue), but I think we should also add private final static members for Generator<Integer>, Generator<Long>, Generator<Boolean> etc that are used by the relevant no-arg methods rather than creating new generators each time they're called, I think that should just be the standard way to implement a method returning a default generator.
I tried to generate a String like this
RDG.string(20).next()
But I always have to set the size, and also there is a static field which contain a default. I think that it should be consistent like integer like this:
RDG.String().next()
The text was updated successfully, but these errors were encountered: