bpiwowar.argparser.checkers
Class Limit
java.lang.Object
bpiwowar.argparser.checkers.Limit
- All Implemented Interfaces:
- ValueChecker, Comparable<Object>
- Direct Known Subclasses:
- DoubleLimit, LongLimit
public abstract class Limit
- extends Object
- implements ValueChecker, Comparable<Object>
- Author:
- bpiwowar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Limit
public Limit(Limit.Type type)
check
public boolean check(Object object)
- Description copied from interface:
ValueChecker
- Check that the value is within a valid range
- Specified by:
check
in interface ValueChecker
setType
public void setType(Limit.Type type)
- Sets the type of the limit
- Parameters:
type
- the type to set
getDescription
public String getDescription()
- Description copied from interface:
ValueChecker
- Get the description of the value checker
- Specified by:
getDescription
in interface ValueChecker
Copyright © 2013. All Rights Reserved.