class BetweenMatcherType implements MatcherType<Range<C>> {

    @Override
    public String encode(Range<C> object, Type<?> type, Matcher matcher) {
        BetweenMatcher betweenMatcher = (BetweenMatcher) matcher;
        String from = encodeValue(object.from(), type);
        String to = encodeValue(object.to(), type);

        char separator = findSeparator(from, to, betweenMatcher.separators());

        return from + separator + to;
    }

}