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

public Class AddressOps

extends Object
Class Inheritance
Imports
sun.jvm.hotspot.debugger.*

Helper class with operations on addresses. Solves the problem of one or both of the arguments being null and needing to call methods like greaterThan(), lessThan(), etc. on them.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
equal(Address a1, Address a2)

Returns true if a1 is equal to a2.

public static boolean
greaterThan(Address a1, Address a2)

Returns true if a1 is greater than a2.

public static boolean
greaterThanOrEqual(Address a1, Address a2)

Returns true if a1 is greater than or equal to a2.

public static boolean
gt(Address a1, Address a2)

Shorthand for greaterThan

public static boolean
gte(Address a1, Address a2)

Shorthand for greaterThanOrEqual

public static boolean
lessThan(Address a1, Address a2)

Returns true if a1 is less than a2.

public static boolean
lessThanOrEqual(Address a1, Address a2)

Returns true if a1 is less than or equal to a2.

public static boolean
lt(Address a1, Address a2)

Shorthand for lessThan

public static boolean
lte(Address a1, Address a2)

Shorthand for lessThanOrEqual

public static Address
max(Address a1, Address a2)

Returns maximum of the two addresses

public static Address
min(Address a1, Address a2)

Returns minimum of the two addresses

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AddressOpsback to summary
public AddressOps()

Method Detail

equalback to summary
public static boolean equal(Address a1, Address a2)

Returns true if a1 is equal to a2. Either or both may be null.

greaterThanback to summary
public static boolean greaterThan(Address a1, Address a2)

Returns true if a1 is greater than a2. Either or both may be null.

greaterThanOrEqualback to summary
public static boolean greaterThanOrEqual(Address a1, Address a2)

Returns true if a1 is greater than or equal to a2. Either or both may be null.

gtback to summary
public static boolean gt(Address a1, Address a2)

Shorthand for greaterThan

gteback to summary
public static boolean gte(Address a1, Address a2)

Shorthand for greaterThanOrEqual

lessThanback to summary
public static boolean lessThan(Address a1, Address a2)

Returns true if a1 is less than a2. Either or both may be null.

lessThanOrEqualback to summary
public static boolean lessThanOrEqual(Address a1, Address a2)

Returns true if a1 is less than or equal to a2. Either or both may be null.

ltback to summary
public static boolean lt(Address a1, Address a2)

Shorthand for lessThan

lteback to summary
public static boolean lte(Address a1, Address a2)

Shorthand for lessThanOrEqual

maxback to summary
public static Address max(Address a1, Address a2)

Returns maximum of the two addresses

minback to summary
public static Address min(Address a1, Address a2)

Returns minimum of the two addresses