RectangleForLsdLengthComparer

Inheritance: java.lang.Object

All Implemented Interfaces: java.util.Comparator

public class RectangleForLsdLengthComparer implements Comparator<RectangleForLsd>

Exposes a method that compares two RectangleForLsd objects by length.

Constructors

Constructor Description
RectangleForLsdLengthComparer()

Methods

Method Description
compare(RectangleForLsd x, RectangleForLsd y) Compares two RectangleForLsd by length and returns a value indicating whether one is shorter than, equal to, or greater than the other.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

RectangleForLsdLengthComparer()

public RectangleForLsdLengthComparer()

compare(RectangleForLsd x, RectangleForLsd y)

public final int compare(RectangleForLsd x, RectangleForLsd y)

Compares two RectangleForLsd by length and returns a value indicating whether one is shorter than, equal to, or greater than the other.

Parameters:

Parameter Type Description
x RectangleForLsd The first RectangleForLsd object to compare.
y RectangleForLsd The second RectangleForLsd object to compare.

Returns: int - A signed integer that indicates the relative values of x and y (-1 - if x is shorter than y, 0 - are equal, 1 - if x is longer then y.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int