AssociatedPerson

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Comparable, com.aspose.ms.System.IEquatable

public class AssociatedPerson implements Comparable<AssociatedPerson>, System.IEquatable<AssociatedPerson>

Describes organization which is associated with a person.

Constructors

Constructor Description
AssociatedPerson()

Methods

Method Description
compareTo(AssociatedPerson obj) 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(AssociatedPerson obj) Determines whether the specified Object is equal to the current Object.
equals(AssociatedPerson x, AssociatedPerson y) Determines whether the specified object instances are considered equal.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
getCategory() Gets or sets an object category
getClass()
getName() Gets or sets a name of a person
getPrefered() Gets or sets a value which defines whether object is preferred.
hashCode() GetHashCode returns a hash function for this object.
hashCode(AssociatedPerson obj) GetHashCode returns a hash function for specified object.
notify()
notifyAll()
op_Equality(AssociatedPerson a, AssociatedPerson b) Determines whether the specified objects are equal.
op_Inequality(AssociatedPerson a, AssociatedPerson b) Determines whether the specified objects are not equal.
setCategory(AssociatedPersonCategory value) Gets or sets an object category
setName(String value) Gets or sets a name of a person
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)

AssociatedPerson()

public AssociatedPerson()

compareTo(AssociatedPerson obj)

public int compareTo(AssociatedPerson obj)

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:

Parameter Type Description
obj AssociatedPerson An object to compare with this instance, or null.

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(AssociatedPerson obj)

public final boolean equals(AssociatedPerson obj)

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

Parameters:

Parameter Type Description
obj AssociatedPerson The Object to compare with the current Object.

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

equals(AssociatedPerson x, AssociatedPerson y)

public final boolean equals(AssociatedPerson x, AssociatedPerson y)

Determines whether the specified object instances are considered equal.

Parameters:

Parameter Type Description
x AssociatedPerson The first object to compare.
y AssociatedPerson The 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 obj)

public boolean equals(Object obj)

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

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with the current Object.

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

getCategory()

public final AssociatedPersonCategory getCategory()

Gets or sets an object category

Returns: AssociatedPersonCategory

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public final String getName()

Gets or sets a name of a person

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(AssociatedPerson obj)

public int hashCode(AssociatedPerson obj)

GetHashCode returns a hash function for specified object.

Parameters:

Parameter Type Description
obj AssociatedPerson The 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(AssociatedPerson a, AssociatedPerson b)

public static boolean op_Equality(AssociatedPerson a, AssociatedPerson b)

Determines whether the specified objects are equal.

Parameters:

Parameter Type Description
a AssociatedPerson First object to compare
b AssociatedPerson Second object to compare

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

op_Inequality(AssociatedPerson a, AssociatedPerson b)

public static boolean op_Inequality(AssociatedPerson a, AssociatedPerson b)

Determines whether the specified objects are not equal.

Parameters:

Parameter Type Description
a AssociatedPerson First object to compare
b AssociatedPerson Second object to compare

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

setCategory(AssociatedPersonCategory value)

public final void setCategory(AssociatedPersonCategory value)

Gets or sets an object category

Parameters:

Parameter Type Description
value AssociatedPersonCategory

setName(String value)

public final void setName(String value)

Gets or sets a name of a person

Parameters:

Parameter Type Description
value java.lang.String

setPrefered(boolean value)

public final void setPrefered(boolean value)

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

Parameters:

Parameter Type Description
value boolean

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:

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