ValueObject
Leave feedback
On this page
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.
| Constructor | Description |
|---|---|
| ValueObject() |
| 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. |
public ValueObject()
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 .
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 .
public int hashCode()
Serves as the default hash function.
Returns: int - A hash code for the current object.
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
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
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.