Url

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Comparable

public class Url implements Comparable<Url>

Objects represents a URL and its category.

Constructors

ConstructorDescription
Url()

Methods

MethodDescription
compareTo(Url pn)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
equals(Url obj)Determines whether the specified Object is equal to the current Object.
equals(Url x, Url y)Determines whether the specified object instances are considered equal.
equals(Object arg0)
getCategory()Gets or sets an object category
getClass()
getHref()Gets or sets a URL
getPrefered()Gets or sets a value which defines whether object is preferred.
hashCode()GetHashCode returns a hash function for this object.
hashCode(Url obj)GetHashCode returns a hash function for specified object.
notify()
notifyAll()
op_Equality(Url a, Url b)Determines whether the specified objects are equal.
op_Inequality(Url a, Url b)Determines whether the specified objects are not equal.
setCategory(UrlCategory value)Gets or sets an object category
setHref(String value)Gets or sets a URL
setPrefered(boolean value)Gets or sets a value which defines whether object is preferred.
toString()Returns a string that represents the current object.
wait()
wait(long arg0)
wait(long arg0, int arg1)

Url()

public Url()

compareTo(Url pn)

public int compareTo(Url pn)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Parameters:

ParameterTypeDescription
pnUrl

Returns: int - This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value

equals(Url obj)

public final boolean equals(Url obj)

Determines whether the specified Object is equal to the current Object.

Parameters:

ParameterTypeDescription
objUrlThe Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

equals(Url x, Url y)

public final boolean equals(Url x, Url y)

Determines whether the specified object instances are considered equal.

Parameters:

ParameterTypeDescription
xUrlThe first object to compare.
yUrlThe second object to compare.

Returns: boolean - true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getCategory()

public final UrlCategory getCategory()

Gets or sets an object category

Returns: UrlCategory

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getHref()

public final String getHref()

Gets or sets a URL

Returns: java.lang.String

getPrefered()

public final boolean getPrefered()

Gets or sets a value which defines whether object is preferred.

Returns: boolean

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.

hashCode(Url obj)

public int hashCode(Url obj)

GetHashCode returns a hash function for specified object.

Parameters:

ParameterTypeDescription
objUrlThe Object for which a hash code is to be returned.

Returns: int - Returns a hash function for specified object.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

op_Equality(Url a, Url b)

public static boolean op_Equality(Url a, Url b)

Determines whether the specified objects are equal.

Parameters:

ParameterTypeDescription
aUrlFirst object to compare
bUrlSecond object to compare

Returns: boolean - Returns true if objects are equal, otherwise false.

op_Inequality(Url a, Url b)

public static boolean op_Inequality(Url a, Url b)

Determines whether the specified objects are not equal.

Parameters:

ParameterTypeDescription
aUrlFirst object to compare
bUrlSecond object to compare

Returns: boolean - Returns true if objects are not equal, otherwise false.

setCategory(UrlCategory value)

public final void setCategory(UrlCategory value)

Gets or sets an object category

Parameters:

ParameterTypeDescription
valueUrlCategory

setHref(String value)

public final void setHref(String value)

Gets or sets a URL

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPrefered(boolean value)

public final void setPrefered(boolean value)

Gets or sets a value which defines whether object is preferred.

Parameters:

ParameterTypeDescription
valueboolean

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - Returns a string that represents the current object.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int