fun.mike.flapjack.lab.FormatExplainer Maven / Gradle / Ivy
package fun.mike.flapjack.lab;
import fun.mike.flapjack.alpha.DelimitedFormat;
import fun.mike.flapjack.alpha.FixedWidthFormat;
import fun.mike.flapjack.alpha.Format;
public class FormatExplainer {
public static String explain(Format format) {
if(format instanceof FixedWidthFormat) return FixedWidthFormatExplainer.explain((FixedWidthFormat)format);
if(format instanceof DelimitedFormat) return DelimitedFormatExplainer.explain((DelimitedFormat)format);
throw new IllegalArgumentException("Unsupported format type: " + format.getClass().getName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy