Record Class ERManagementUtility.HierarchySyncResult
java.lang.Object
java.lang.Record
org.gcube.informationsystem.resourceregistry.persistence.orientdb.instances.ERManagementUtility.HierarchySyncResult
- Record Components:
uuid- the Resource UUIDcreated- whether the Resource was created by the requestskippedContexts- the number of non-ACTIVEdescendant Contexts left untouched
- Enclosing class:
- ERManagementUtility
public static record ERManagementUtility.HierarchySyncResult(UUID uuid, boolean created, int skippedContexts)
extends Record
The outcome of a hierarchy synchronization.
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchySyncResult(UUID uuid, boolean created, int skippedContexts) Creates an instance of aHierarchySyncResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theskippedContextsrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
HierarchySyncResult
Creates an instance of aHierarchySyncResultrecord class.- Parameters:
uuid- the value for theuuidrecord componentcreated- the value for thecreatedrecord componentskippedContexts- the value for theskippedContextsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
created
public boolean created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
skippedContexts
public int skippedContexts()Returns the value of theskippedContextsrecord component.- Returns:
- the value of the
skippedContextsrecord component
-