LiteralToken.java
409 Bytes
package com.diligrp.assistant.uid.pattern;
import com.diligrp.assistant.uid.domain.SequenceKey;
public class LiteralToken extends Token {
public LiteralToken(String token) {
super(token);
}
@Override
Converter<SequenceKey> getConverter() {
return new LiteralConverter(token);
}
public String toString() {
return String.format("literal(%s)", token);
}
}