edu.northwestern.at.monk.model
Class DoubleCriterion

java.lang.Object
  extended by edu.northwestern.at.monk.model.SearchCriterion
      extended by edu.northwestern.at.monk.model.NumericCriterion
          extended by edu.northwestern.at.monk.model.DoubleCriterion
Direct Known Subclasses:
FreqCumCriterion, FreqCumMainCriterion, FreqNonCumCriterion, FreqNonCumMainCriterion

public abstract class DoubleCriterion
extends NumericCriterion

A type double numeric search criterion.

A double numeric criterion is a numeric criterion where the attribute value is of type double.

Each double numeric criterion class offers constructors of the following forms, where T is the type of the criterion:

T (double val)

Creates a criterion that exactly matches val.

T (Double val)

Creates a criterion that exactly matches val.

T (double start, double end)

Creates a criterion for the range start through end inclusive.

T (Double start, double end)

Creates a criterion for the range start through end inclusive.

T (double start, Double end)

Creates a criterion for the range start through end inclusive.

T (Double start, Double end)

Creates a criterion for the range start through end inclusive.

T (DoubleRange... ranges)

Creates a criterion for a vararg list or array of DoubleRange ranges.

T (Collection<DoubleRange> ranges)

Creates a criterion for a collection of DoubleRange ranges.

The start and/or end of a range may be null, in which case no constraint is placed on the start and/or end. See NumericCriterion for details and examples.

An empty or "no-op" criterion that matches any value can be constructed with a null value, with start and end values both of which are nll, or with an empty array or collection of ranges.

See Also:
MONK Datastore Overview, Licensing Agreement

Method Summary
 java.lang.Double getEnd()
          Gets the end of the range.
 DoubleRange getRange()
          Gets the range.
 java.util.Collection<DoubleRange> getRanges()
          Gets the ranges.
 java.lang.Double getStart()
          Gets the start of the range.
 java.lang.Double getValue()
          Gets the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRanges

public java.util.Collection<DoubleRange> getRanges()
Gets the ranges.

Returns:
The ranges, or null if none.

getRange

public DoubleRange getRange()
Gets the range.

Returns:
The range, or null if none or more than one.

getStart

public java.lang.Double getStart()
Gets the start of the range.

Returns:
The start of the range, or null if none or more than one.

getEnd

public java.lang.Double getEnd()
Gets the end of the range.

Returns:
The end of the range, or null if none or more than one.

getValue

public java.lang.Double getValue()
Gets the value.

Returns:
The value, or null if no ranges, more than one range, or range start is not equal to range end.