junitx.ddtunit.data
Class ComparableRange<T>

java.lang.Object
  extended by junitx.ddtunit.data.ComparableRange<T>
All Implemented Interfaces:
IRange<T>

public class ComparableRange<T>
extends Object
implements IRange<T>


Constructor Summary
ComparableRange()
          Instanciate range and set range delimiting objects as included in Range
 
Method Summary
 Comparable<T> getEnd()
           
 Comparable getStart()
           
 boolean isEndIncluded()
           
 boolean isInRange(Comparable<T> actual)
          Verify if provided Comparable is in range
 boolean isStartIncluded()
           
 void setEnd(Comparable<T> end)
           
 void setEndIncluded(boolean endIncluded)
           
 void setStart(Comparable<T> start)
           
 void setStartIncluded(boolean startIncluded)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComparableRange

public ComparableRange()
Instanciate range and set range delimiting objects as included in Range

Method Detail

isInRange

public boolean isInRange(Comparable<T> actual)
Description copied from interface: IRange
Verify if provided Comparable is in range

Specified by:
isInRange in interface IRange<T>
Parameters:
actual - object to check against range
Returns:
true if actual object is in range.

getEnd

public Comparable<T> getEnd()
Specified by:
getEnd in interface IRange<T>

setEnd

public void setEnd(Comparable<T> end)
Specified by:
setEnd in interface IRange<T>

isEndIncluded

public boolean isEndIncluded()
Specified by:
isEndIncluded in interface IRange<T>

setEndIncluded

public void setEndIncluded(boolean endIncluded)
Specified by:
setEndIncluded in interface IRange<T>

getStart

public Comparable getStart()
Specified by:
getStart in interface IRange<T>

setStart

public void setStart(Comparable<T> start)
Specified by:
setStart in interface IRange<T>

isStartIncluded

public boolean isStartIncluded()
Specified by:
isStartIncluded in interface IRange<T>

setStartIncluded

public void setStartIncluded(boolean startIncluded)
Specified by:
setStartIncluded in interface IRange<T>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2011. All Rights Reserved.