Record Class FutureStreamCache.Key<T extends Resource>
java.lang.Object
java.lang.Record
org.jdrupes.builder.core.FutureStreamCache.Key<T>
- Type Parameters:
T- the generic type- Record Components:
provider- the providerrequested- the requested resources
- Enclosing class:
FutureStreamCache
public static record FutureStreamCache.Key<T extends Resource>(ResourceProvider provider, ResourceRequest<T extends Resource> requested)
extends Record
Provided resources are identified by the
ResourceProvider
and the requested Resource.-
Constructor Summary
ConstructorsConstructorDescriptionKey(ResourceProvider provider, ResourceRequest<T> requested) Creates an instance of aKeyrecord 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.provider()Returns the value of theproviderrecord component.Returns the value of therequestedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
provider
-
requested
-