Record Class PatchStatusContext
java.lang.Object
java.lang.Record
org.opendaylight.restconf.common.patch.PatchStatusContext
public record PatchStatusContext(@NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContext context, @NonNull String patchId, @NonNull List<PatchStatusEntity> editCollection, boolean ok, @Nullable List<RestconfError> globalErrors)
extends Record
Holder of patch status context.
-
Constructor Summary
ConstructorsConstructorDescriptionPatchStatusContext(@NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContext context, @NonNull String patchId, @NonNull List<PatchStatusEntity> editCollection, boolean ok, @Nullable List<RestconfError> globalErrors) Creates an instance of aPatchStatusContextrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContextcontext()Returns the value of thecontextrecord component.@NonNull List<PatchStatusEntity>Returns the value of theeditCollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable List<RestconfError>Returns the value of theglobalErrorsrecord component.final inthashCode()Returns a hash code value for this object.booleanok()Returns the value of theokrecord component.@NonNull StringpatchId()Returns the value of thepatchIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatchStatusContext
public PatchStatusContext(@NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContext context, @NonNull String patchId, @NonNull List<PatchStatusEntity> editCollection, boolean ok, @Nullable List<RestconfError> globalErrors) Creates an instance of aPatchStatusContextrecord class.- Parameters:
context- the value for thecontextrecord componentpatchId- the value for thepatchIdrecord componenteditCollection- the value for theeditCollectionrecord componentok- the value for theokrecord componentglobalErrors- the value for theglobalErrorsrecord 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 '=='. -
context
public @NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
patchId
Returns the value of thepatchIdrecord component.- Returns:
- the value of the
patchIdrecord component
-
editCollection
Returns the value of theeditCollectionrecord component.- Returns:
- the value of the
editCollectionrecord component
-
ok
public boolean ok()Returns the value of theokrecord component.- Returns:
- the value of the
okrecord component
-
globalErrors
Returns the value of theglobalErrorsrecord component.- Returns:
- the value of the
globalErrorsrecord component
-