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

ConstructorDescription
AssociatedPerson()

Methods

MethodDescription
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:

ParameterTypeDescription
objAssociatedPersonAn 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:

ParameterTypeDescription
objAssociatedPersonThe 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:

ParameterTypeDescription
xAssociatedPersonThe first object to compare.
yAssociatedPersonThe 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:

ParameterTypeDescription
objjava.lang.ObjectThe 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:

ParameterTypeDescription
objAssociatedPersonThe 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:

ParameterTypeDescription
aAssociatedPersonFirst object to compare
bAssociatedPersonSecond 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:

ParameterTypeDescription
aAssociatedPersonFirst object to compare
bAssociatedPersonSecond 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:

ParameterTypeDescription
valueAssociatedPersonCategory

setName(String value)

public final void setName(String value)

Gets or sets a name of a person

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