Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ubermq.chord
Class Interval  view Interval download Interval.java

java.lang.Object
  extended bycom.ubermq.chord.Interval

public class Interval
extends java.lang.Object


Constructor Summary
private Interval()
           
 
Method Summary
static boolean elementOf(ChordIdentifier x, ChordIdentifier a, ChordIdentifier b, boolean openA, boolean openB)
          Tests whether x is contained in an arbitrary interval between a and b.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interval

private Interval()
Method Detail

elementOf

public static boolean elementOf(ChordIdentifier x,
                                ChordIdentifier a,
                                ChordIdentifier b,
                                boolean openA,
                                boolean openB)
Tests whether x is contained in an arbitrary interval between a and b. The open parameters indicate if the interval endpoint is opened or closed.

An open interval is notated as (a, b). A closed interval is [a,b]. Open intervals include the endpoint as specified (i.e. inclusive). Closed intervals do not.