Package org.mule.metadata.api.model
Interface FieldsComparable
-
- All Known Implementing Classes:
BaseMetadataType,DefaultAnyType,DefaultArrayType,DefaultAttributeFieldType,DefaultAttributeKeyType,DefaultBinaryType,DefaultBooleanType,DefaultDateTimeType,DefaultDateType,DefaultFunctionType,DefaultIntersectionType,DefaultLocalDateTimeType,DefaultLocalTimeType,DefaultNothingType,DefaultNullType,DefaultNumberType,DefaultObjectFieldType,DefaultObjectKeyType,DefaultObjectType,DefaultPeriodType,DefaultRegexType,DefaultStringType,DefaultTimeType,DefaultTimeZoneType,DefaultTupleType,DefaultTypeParameterType,DefaultUnionType,DefaultVoidType
public interface FieldsComparableImplementing this interface indicates that a class is ready to be called byEfficientHashCodeorEfficientEqualsin order to generate it's hash code or check it's equality respectively.The class implementing this interface must expose a set of
Fields with its identity fields.- Since:
- 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getFieldValues()A list of the fields that define the identity of this class.
-
-
-
Method Detail
-
getFieldValues
Object[] getFieldValues()
A list of the fields that define the identity of this class. These fields can be used to compare if instances of a class are equal, or to generate a hash code for it.Have in mind not exposing fields of class
Pattern, for example, that only check for reference equality (If that is not the desired behaviour).
-
-