net.sf.webmancer.util.integerset
Class Interval

java.lang.Object
  extended by net.sf.webmancer.util.integerset.Interval

public class Interval
extends java.lang.Object


Nested Class Summary
static class Interval.RelativePosition
           
 
Constructor Summary
Interval(int from, int to)
           
 
Method Summary
 boolean contains(int integer)
           
 int getFrom()
           
 Interval.RelativePosition getRelativePositionTo(Interval interval)
           
 int getTo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interval

public Interval(int from,
                int to)
Method Detail

getFrom

public int getFrom()
Returns:
the from

getTo

public int getTo()
Returns:
the to

contains

public boolean contains(int integer)
Parameters:
integer -
Returns:

getRelativePositionTo

public Interval.RelativePosition getRelativePositionTo(Interval interval)
Parameters:
interval -
Returns:


Copyright © 2006-2007. All Rights Reserved.