Record Class MetaDataResult
java.lang.Object
java.lang.Record
org.pwss.quarantineManager_aes.dto.MetaDataResult
A record to hold the result of a metadata operation, indicating whether it was successful
and storing the name of the key associated with that operation.
This record is typically used in the context of file quarantine and unquarantine operations, where it provides information about the success or failure of such operations along with the relevant encryption key name.
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDataResult(boolean successful, String keyName) Creates an instance of aMetaDataResultrecord 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.keyName()Returns the value of thekeyNamerecord component.booleanReturns the value of thesuccessfulrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetaDataResult
Creates an instance of aMetaDataResultrecord class.- Parameters:
successful- the value for thesuccessfulrecord componentkeyName- the value for thekeyNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
keyName
Returns the value of thekeyNamerecord component.- Returns:
- the value of the
keyNamerecord component
-