ValueObject

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IEquatable, java.io.Serializable

public abstract class ValueObject implements System.IEquatable<ValueObject>, Serializable

Abstract value object class.

Constructors

Constructor Description
ValueObject()

Methods

Method Description
equals(Object obj) Determines whether two object instances are equal.
equals(ValueObject other) Determines whether two object instances are equal.
hashCode() Serves as the default hash function.
op_Equality(ValueObject a, ValueObject b) Equality operator.
op_Inequality(ValueObject a, ValueObject b) Inequality operator.

ValueObject()

public ValueObject()

equals(Object obj)

public boolean equals(Object obj)

Determines whether two object instances are equal.

Parameters:

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

Returns: boolean - true if the specified object is equal to the current object; otherwise, false .

equals(ValueObject other)

public final boolean equals(ValueObject other)

Determines whether two object instances are equal.

Parameters:

Parameter Type Description
other ValueObject The object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false .

hashCode()

public int hashCode()

Serves as the default hash function.

Returns: int - A hash code for the current object.

op_Equality(ValueObject a, ValueObject b)

public static boolean op_Equality(ValueObject a, ValueObject b)

Equality operator.

Parameters:

Parameter Type Description
a ValueObject The first object
b ValueObject The second object

Returns: boolean - true if objects are equal

op_Inequality(ValueObject a, ValueObject b)

public static boolean op_Inequality(ValueObject a, ValueObject b)

Inequality operator.

Parameters:

Parameter Type Description
a ValueObject The first object
b ValueObject The second object

Returns: boolean - true if objects are not equal