Package com.evolveum.concepts
Record Class ValidationLog
java.lang.Object
java.lang.Record
com.evolveum.concepts.ValidationLog
public record ValidationLog(ValidationLogType validationLogType, ValidationLogType.Specification specification, SourceLocation location, TechnicalMessage technicalMessage, String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValidationLog(ValidationLogType validationLogType, ValidationLogType.Specification specification, SourceLocation location, TechnicalMessage technicalMessage, String message) Creates an instance of aValidationLogrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.Returns the value of thespecificationrecord component.Returns the value of thetechnicalMessagerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationLogTyperecord component.
-
Constructor Details
-
ValidationLog
public ValidationLog(ValidationLogType validationLogType, ValidationLogType.Specification specification, SourceLocation location, TechnicalMessage technicalMessage, String message) Creates an instance of aValidationLogrecord class.- Parameters:
validationLogType- the value for thevalidationLogTyperecord componentspecification- the value for thespecificationrecord componentlocation- the value for thelocationrecord componenttechnicalMessage- the value for thetechnicalMessagerecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
validationLogType
Returns the value of thevalidationLogTyperecord component.- Returns:
- the value of the
validationLogTyperecord component
-
specification
Returns the value of thespecificationrecord component.- Returns:
- the value of the
specificationrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
technicalMessage
Returns the value of thetechnicalMessagerecord component.- Returns:
- the value of the
technicalMessagerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-