APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class Interval

extends Object
Class Inheritance
Imports
java.util.Comparator

Field Summary

Modifier and TypeField and Description
private Object
private Object

Constructor Summary

AccessConstructor and Description
public
Interval(Object lowEndpoint, Object highEndpoint)

It is required that the low endpoint be less than or equal to the high endpoint according to the Comparator which will be passed into the overlaps() routines.

Method Summary

Modifier and TypeMethod and Description
public Object
public Object
public boolean
overlaps(Interval arg, Comparator<Object> endpointComparator)

This takes the Interval to compare against as well as a Comparator which will be applied to the low and high endpoints of the given intervals.

public boolean
overlaps(Object otherLowEndpoint, Object otherHighEndpoint, Comparator<Object> endpointComparator)

Routine which can be used instead of the one taking an interval, for the situation where the endpoints are being retrieved from different data structures

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

highEndpointback to summary
private Object highEndpoint
lowEndpointback to summary
private Object lowEndpoint

Constructor Detail

Intervalback to summary
public Interval(Object lowEndpoint, Object highEndpoint)

It is required that the low endpoint be less than or equal to the high endpoint according to the Comparator which will be passed into the overlaps() routines.

Method Detail

getHighEndpointback to summary
public Object getHighEndpoint()
getLowEndpointback to summary
public Object getLowEndpoint()
overlapsback to summary
public boolean overlaps(Interval arg, Comparator<Object> endpointComparator)

This takes the Interval to compare against as well as a Comparator which will be applied to the low and high endpoints of the given intervals.

overlapsback to summary
public boolean overlaps(Object otherLowEndpoint, Object otherHighEndpoint, Comparator<Object> endpointComparator)

Routine which can be used instead of the one taking an interval, for the situation where the endpoints are being retrieved from different data structures

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.