org.opennms.bb.common.filter.util
Class Range

java.lang.Object
  |
  +--org.opennms.bb.common.filter.util.Range

public class Range
extends Object

This is a data classed used for storing range information that is parsed from an octet in an ip string from the IPLIKE operation. A range consists of single integer or a max/min pair.

Version:
$Revision: 1.2 $
Author:
Jason Johns, OpenNMS

Field Summary
private  Integer highNum
          The maximum for the range
private  Integer lowNum
          The minimum for the range
 
Constructor Summary
Range(Integer low, Integer high)
          Constructor to create a range knowing the max and min values.
 
Method Summary
 int getHighNum()
          This method returns the high value range.
 int getLowNum()
          This method returns the low value range.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

highNum

private Integer highNum
The maximum for the range

lowNum

private Integer lowNum
The minimum for the range
Constructor Detail

Range

public Range(Integer low,
             Integer high)
Constructor to create a range knowing the max and min values. A null high value indicates that this range should consist of just a single number, and the high value will be set equal to the low value. The user is required to check this condition when getting and interpreting the range later.
Parameters:
Integer - low, the min value
Integer - high, the max value;
Method Detail

getLowNum

public int getLowNum()
This method returns the low value range.

getHighNum

public int getHighNum()
This method returns the high value range.