Mercurial > repos > timpalpant > java_genomics_toolkit
comparison src/edu/unc/genomics/PathFactory.java @ 2:e16016635b2a
Uploaded
| author | timpalpant |
|---|---|
| date | Mon, 13 Feb 2012 22:12:06 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:a54db233ee3d | 2:e16016635b2a |
|---|---|
| 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 } |
