All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.carml.engine.template.Template Maven / Gradle / Ivy

package io.carml.engine.template;

import java.util.Optional;
import java.util.Set;
import java.util.function.Function;

public interface Template {

  Set getExpressions();

  Builder newBuilder();

  interface Builder {

    Builder bind(Expression expression, Function> templateValue);

    Optional create();

  }

  interface Expression {

    String getValue();

  }

  String toTemplateString();

}