Top Description Fields Constructors Methods
org.jparsec

pack-priv sealed Enum IntOrder

extends Enum<IntOrder>
Class Inheritance

Maps two integers to a boolean value.
Author
Ben Yu

Field Summary

Modifier and TypeField and Description
public static final IntOrder
GT

An IntOrder instance that determines if the first integer is smaller than the second one.

public static final IntOrder
LT

An IntOrder instance that determines if the first integer is less than the second one.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract boolean

Returns:

the comparison result.
compare
(int
1st int
a
,
int
2nd int
b
)

Compares two integers.

public static IntOrder
public static IntOrder[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GTback to summary
public static final IntOrder GT

An IntOrder instance that determines if the first integer is smaller than the second one.

GT.compare(2, 1) == true.

LTback to summary
public static final IntOrder LT

An IntOrder instance that determines if the first integer is less than the second one.

LT.compare(1, 2) == true.

Constructor Detail

IntOrderback to summary
private IntOrder()

Method Detail

compareback to summary
pack-priv abstract boolean compare(int a, int b)

Compares two integers.

Parameters
a:int

1st int

b:int

2nd int

Returns:boolean

the comparison result.

valueOfback to summary
public static IntOrder valueOf(String name)
valuesback to summary
public static IntOrder[] values()