Record Class FromHelper
java.lang.Object
java.lang.Record
org.jdrupes.builder.api.FromHelper
- Record Components:
context- the contextproviders- the providers
Helper class for implementing
Project.from(ResourceProvider).-
Constructor Summary
ConstructorsConstructorDescriptionFromHelper(BuildContext context, Stream<ResourceProvider> providers) Creates an instance of aFromHelperrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.get(ResourceRequest<T> request) Returns the requested resources using the context and providers passed to the record's constructor.final inthashCode()Returns a hash code value for this object.Returns the value of theprovidersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
get
Returns the requested resources using the context and providers passed to the record's constructor.- Type Parameters:
T- the generic type- Parameters:
request- the request- Returns:
- the stream
-
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). -
context
-
providers
-