Top Description Constructors Methods
org.eclipse.collections.impl.list

public final Class IntervalUtils

extends Object
Class Inheritance

This is a utility class for common behaviors between Interval and IntInterval. It is a public class only because Interval and IntInterval are in different packages.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
binarySearch(long value, long from, long to, long step)

public static int
calculateAdjustedStep(int from, int to, int stepBy)

public static void
checkArguments(long from, long to, long stepBy)

private static void
checkSize(long from, long to, long stepBy)

private static void
checkStepBy(long from, long to, long stepBy)

public static boolean
contains(long value, long from, long to, long step)

public static int
indexOf(long value, long from, long to, long step)

public static int
intSize(long from, long to, long step)

public static boolean
isWithinBoundaries(long value, long from, long to, long step)

public static long
valueAtIndex(int index, long from, long to, long step)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IntervalUtilsback to summary
private IntervalUtils()

Method Detail

binarySearchback to summary
public static int binarySearch(long value, long from, long to, long step)
calculateAdjustedStepback to summary
public static int calculateAdjustedStep(int from, int to, int stepBy)
checkArgumentsback to summary
public static void checkArguments(long from, long to, long stepBy)
checkSizeback to summary
private static void checkSize(long from, long to, long stepBy)
checkStepByback to summary
private static void checkStepBy(long from, long to, long stepBy)
containsback to summary
public static boolean contains(long value, long from, long to, long step)
indexOfback to summary
public static int indexOf(long value, long from, long to, long step)
intSizeback to summary
public static int intSize(long from, long to, long step)
isWithinBoundariesback to summary
public static boolean isWithinBoundaries(long value, long from, long to, long step)
valueAtIndexback to summary
public static long valueAtIndex(int index, long from, long to, long step)