comparison java-genomics-toolkit/src/edu/unc/genomics/PathFactory.java @ 0:1daf3026d231

Upload alpha version
author timpalpant
date Mon, 13 Feb 2012 21:55:55 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1daf3026d231
1 /**
2 *
3 */
4 package edu.unc.genomics;
5
6 import java.nio.file.Path;
7
8 import com.beust.jcommander.IStringConverterFactory;
9
10 /**
11 * @author timpalpant
12 *
13 */
14 public class PathFactory implements IStringConverterFactory {
15 /* (non-Javadoc)
16 * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class)
17 */
18 @Override
19 public Class<PathConverter> getConverter(Class forType) {
20 if (forType.equals(Path.class)) {
21 return PathConverter.class;
22 } else {
23 return null;
24 }
25 }
26
27 }