org.jcreme.filters
Class DoubleIntervalFilter

java.lang.Object
  extended byorg.jcreme.filters.IntervalFilter
      extended byorg.jcreme.filters.DoubleIntervalFilter
All Implemented Interfaces:
java.lang.Cloneable, Filter, java.io.Serializable

public class DoubleIntervalFilter
extends IntervalFilter

This the specialization of the IntervalFilter for Doubles. It enables to determine if a given Double belongs to an interval.

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class org.jcreme.filters.IntervalFilter
LOWER_FILTER_PROPERTY, UPPER_FILTER_PROPERTY
 
Constructor Summary
DoubleIntervalFilter(DoubleOrderFilter lowerFilter, DoubleOrderFilter upperFilter)
          Creates a new instance of DoubleIntervalFilter
 
Method Summary
 DoubleOrderFilter getLowerFilter()
          This method gives access to the lower barrier.
 DoubleOrderFilter getUpperFilter()
          This method gives access to the upper barrier.
 void setLowerFilter(DoubleOrderFilter filter)
          This method enables to change the lower barrier of the interval.
 void setUpperFilter(DoubleOrderFilter filter)
          This method enables to change the upper barrier of the interval.
 
Methods inherited from class org.jcreme.filters.IntervalFilter
accept, clone, equals, getLowerFilterInternal, getUpperFilterInternal, hashCode, setLowerFilter, setUpperFilter, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DoubleIntervalFilter

public DoubleIntervalFilter(DoubleOrderFilter lowerFilter,
                            DoubleOrderFilter upperFilter)
Creates a new instance of DoubleIntervalFilter

Parameters:
lowerFilter - the filter for the lower barrier of the interval.
upperFilter - the filter for the upper barrier of the interval.
Method Detail

setLowerFilter

public void setLowerFilter(DoubleOrderFilter filter)
This method enables to change the lower barrier of the interval.

Parameters:
filter - a filter to restrict the current interval.

setUpperFilter

public void setUpperFilter(DoubleOrderFilter filter)
This method enables to change the upper barrier of the interval.

Parameters:
filter - a filter to restrict the current interval.

getLowerFilter

public DoubleOrderFilter getLowerFilter()
This method gives access to the lower barrier.

Returns:
the filter associated to the lower end of the interval.

getUpperFilter

public DoubleOrderFilter getUpperFilter()
This method gives access to the upper barrier.

Returns:
the filter associated to the upper end of the interval.


Copyright 2006 null. All Rights Reserved.