EmptyStringTemplate

io.github.cakelier.tuples.space.dsl.StringTemplate$.EmptyStringTemplate

The base template, capable of matching any string value.

Attributes

Graph
Supertypes
trait Template
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def gte(minLength: Int): WithMinimumStringTemplate

Adds the inclusive minimum length that the string should satisfy to match the built template.

Adds the inclusive minimum length that the string should satisfy to match the built template.

Value parameters

minLength

the inclusive minimum length that the string should satisfy to match the built template

Attributes

Returns

a template which has stored the inclusive minimum information

Adds the values to which the string should be equal in order to match the built template.

Adds the values to which the string should be equal in order to match the built template.

Value parameters

values

the values to which the string should be equal for it to match the built template

Attributes

Returns

a "terminal" template, which has stored this information

def lte(maxLength: Int): WithMaximumStringTemplate

Adds the inclusive maximum length that the string should satisfy to match the built template.

Adds the inclusive maximum length that the string should satisfy to match the built template.

Value parameters

maxLength

the inclusive maximum length that the string should satisfy to match the built template

Attributes

Returns

a template which has stored the inclusive maximum information

Adds the regular expression which should match the string for this to match the built template.

Adds the regular expression which should match the string for this to match the built template.

Value parameters

regex

the regex which should match the string for it to match the built template

Attributes

Returns

a "terminal" template, which has stored this information

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes