X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fcommandline%2Fparameterparser%2Ftype%2FIntegerArgument.java;fp=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fcommandline%2Fparameterparser%2Ftype%2FIntegerArgument.java;h=0000000000000000000000000000000000000000;hb=9e18e609a44f9392aee651cfaf193b4141aef6b4;hp=2dfd3000427eb61839f07892e0753d305f48d7da;hpb=4b43c4952ee8fd2a88b1fd00aaabe2d66e5fdc2e;p=svjatoslav_commons.git diff --git a/src/main/java/eu/svjatoslav/commons/commandline/parameterparser/type/IntegerArgument.java b/src/main/java/eu/svjatoslav/commons/commandline/parameterparser/type/IntegerArgument.java deleted file mode 100755 index 2dfd300..0000000 --- a/src/main/java/eu/svjatoslav/commons/commandline/parameterparser/type/IntegerArgument.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Svjatoslav Commons - shared library of common functionality. - * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ - -package eu.svjatoslav.commons.commandline.parameterparser.type; - -import eu.svjatoslav.commons.commandline.parameterparser.Argument; - -public class IntegerArgument implements Argument { - - @Override - public java.lang.String describeFormat() { - return "integer"; - } - - @Override - public boolean validate(final java.lang.String value) { - try { - java.lang.Integer.valueOf(value); - return true; - } catch (final NumberFormatException e) { - return false; - } - } - -}