LiteralConverter.java 376 Bytes
package com.diligrp.assistant.uid.pattern;

import com.diligrp.assistant.uid.domain.SequenceKey;

public class LiteralConverter extends Converter<SequenceKey> {
    private final String literal;

    public LiteralConverter(String literal) {
        this.literal = literal;
    }

    @Override
    public String convert(SequenceKey context) {
        return literal;
    }
}