Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ConverterParsedOptionSpecificationToRawOption |
|
| 1.0;1 |
1 | // | |
2 | //Author : t.wood | |
3 | //Copyright : (c) Resilient Networks plc 2012 - All Rights Reserved | |
4 | // | |
5 | package com.lexicalscope.jewel.cli.validation; | |
6 | ||
7 | import ch.lambdaj.function.convert.Converter; | |
8 | ||
9 | import com.lexicalscope.jewel.cli.specification.ParsedOptionSpecification; | |
10 | ||
11 | 0 | public class ConverterParsedOptionSpecificationToRawOption implements Converter<ParsedOptionSpecification, String> |
12 | { | |
13 | @Override | |
14 | public String convert(final ParsedOptionSpecification from) | |
15 | { | |
16 | 0 | return from.getLongName().get(0); |
17 | } | |
18 | } |