Record Class AbstractObjectStorageResourceLoader.ResolvedObjectStorageResource
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.resource.AbstractObjectStorageResourceLoader.ResolvedObjectStorageResource
- Record Components:
key- The object key used against the backing storageexternalForm- The URI exposed viaURL.toExternalForm()operations- The storage operations for the resolved resource
- Enclosing class:
AbstractObjectStorageResourceLoader
@Internal
public static record AbstractObjectStorageResourceLoader.ResolvedObjectStorageResource(@NonNull String key, @NonNull String externalForm, @NonNull ObjectStorageOperations<?,?,?> operations)
extends Record
Resolved object storage resource.
- Since:
- 3.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedObjectStorageResource(@NonNull String key, @NonNull String externalForm, @NonNull ObjectStorageOperations<?, ?, ?> operations) Creates an instance of aResolvedObjectStorageResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull StringReturns the value of theexternalFormrecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringkey()Returns the value of thekeyrecord component.@NonNull ObjectStorageOperations<?, ?, ?> Returns the value of theoperationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedObjectStorageResource
public ResolvedObjectStorageResource(@NonNull String key, @NonNull String externalForm, @NonNull ObjectStorageOperations<?, ?, ?> operations) Creates an instance of aResolvedObjectStorageResourcerecord class.- Parameters:
key- the value for thekeyrecord componentexternalForm- the value for theexternalFormrecord componentoperations- the value for theoperationsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
key
-
externalForm
Returns the value of theexternalFormrecord component.- Returns:
- the value of the
externalFormrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-