Record Class AbstractObjectStorageResourceLoader.RelativeBase
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.resource.AbstractObjectStorageResourceLoader.RelativeBase
- Record Components:
externalPrefix- The rebased URI prefix, always ending in/keyPrefix- The rebased object key prefix, always ending in/operations- The storage operations to use for relative lookups
- Enclosing class:
AbstractObjectStorageResourceLoader
@Internal
public static record AbstractObjectStorageResourceLoader.RelativeBase(@NonNull String externalPrefix, @NonNull String keyPrefix, @NonNull ObjectStorageOperations<?,?,?> operations)
extends Record
Relative loader state for
AbstractObjectStorageResourceLoader.forBase(String).- Since:
- 3.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionRelativeBase(@NonNull String externalPrefix, @NonNull String keyPrefix, @NonNull ObjectStorageOperations<?, ?, ?> operations) Creates an instance of aRelativeBaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull StringReturns the value of theexternalPrefixrecord component.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of thekeyPrefixrecord component.@NonNull ObjectStorageOperations<?, ?, ?> Returns the value of theoperationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelativeBase
public RelativeBase(@NonNull String externalPrefix, @NonNull String keyPrefix, @NonNull ObjectStorageOperations<?, ?, ?> operations) Creates an instance of aRelativeBaserecord class.- Parameters:
externalPrefix- the value for theexternalPrefixrecord componentkeyPrefix- the value for thekeyPrefixrecord 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). -
externalPrefix
Returns the value of theexternalPrefixrecord component.- Returns:
- the value of the
externalPrefixrecord component
-
keyPrefix
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-