bpiwowar.argparser.checkers
Class Limit

java.lang.Object
  extended by 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

Nested Class Summary
static class Limit.Type
           
 
Constructor Summary
Limit(Limit.Type type)
           
 
Method Summary
 boolean check(Object object)
          Check that the value is within a valid range
 String getDescription()
          Get the description of the value checker
 void setType(Limit.Type type)
          Sets the type of the limit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

Limit

public Limit(Limit.Type type)
Method Detail

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.