Package org.ametys.plugins.contentio.csv
Record Class CSVImporter.SynchronizeResult
java.lang.Object
java.lang.Record
org.ametys.plugins.contentio.csv.CSVImporter.SynchronizeResult
- Record Components:
isCreated
- If the content was createdcontent
- The contenthasKey
- has key
- Enclosing class:
CSVImporter
protected static record CSVImporter.SynchronizeResult(boolean isCreated, Optional<ModifiableWorkflowAwareContent> content, boolean hasKey)
extends Record
Synchronize result
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SynchronizeResult
(boolean isCreated, Optional<ModifiableWorkflowAwareContent> content, boolean hasKey) Creates an instance of aSynchronizeResult
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the value of thecontent
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasKey()
Returns the value of thehasKey
record component.boolean
Returns the value of theisCreated
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SynchronizeResult
protected SynchronizeResult(boolean isCreated, Optional<ModifiableWorkflowAwareContent> content, boolean hasKey) Creates an instance of aSynchronizeResult
record class.
-
-
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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
isCreated
Returns the value of theisCreated
record component.- Returns:
- the value of the
isCreated
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-
hasKey
Returns the value of thehasKey
record component.- Returns:
- the value of the
hasKey
record component
-