Package ke.ric.renderer.api
Record Class RendererCapabilities
java.lang.Object
java.lang.Record
ke.ric.renderer.api.RendererCapabilities
- Record Components:
rendererVersion- provider-reported renderer versionplatform- provider-reported platform identifiernativeAvailable- whether the current runtime can perform native renderingpackagedForProduction- whether the provider and native artifact have a matching production identitysupportedProfiles- immutable set of quality intents accepted by this runtimesupportedAttachments- immutable set of optional output attachments accepted by this runtime
public record RendererCapabilities(String rendererVersion, String platform, boolean nativeAvailable, boolean packagedForProduction, Set<RenderSettings.Profile> supportedProfiles, Set<Attachment> supportedAttachments)
extends Record
Immutable snapshot of capabilities advertised by the current provider runtime.
packagedForProduction is true only when the provider artifact and native library have a
verified matching commercial product identity; it does not describe whether development use is
otherwise functional.-
Constructor Summary
ConstructorsConstructorDescriptionRendererCapabilities(String rendererVersion, String platform, boolean nativeAvailable, boolean packagedForProduction, Set<RenderSettings.Profile> supportedProfiles, Set<Attachment> supportedAttachments) Creates an instance of aRendererCapabilitiesrecord 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.booleanReturns the value of thenativeAvailablerecord component.booleanReturns the value of thepackagedForProductionrecord component.platform()Returns the value of theplatformrecord component.Returns the value of therendererVersionrecord component.Returns the value of thesupportedAttachmentsrecord component.Returns the value of thesupportedProfilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RendererCapabilities
public RendererCapabilities(String rendererVersion, String platform, boolean nativeAvailable, boolean packagedForProduction, Set<RenderSettings.Profile> supportedProfiles, Set<Attachment> supportedAttachments) Creates an instance of aRendererCapabilitiesrecord class.- Parameters:
rendererVersion- the value for therendererVersionrecord componentplatform- the value for theplatformrecord componentnativeAvailable- the value for thenativeAvailablerecord componentpackagedForProduction- the value for thepackagedForProductionrecord componentsupportedProfiles- the value for thesupportedProfilesrecord componentsupportedAttachments- the value for thesupportedAttachmentsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
rendererVersion
Returns the value of therendererVersionrecord component.- Returns:
- the value of the
rendererVersionrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
nativeAvailable
public boolean nativeAvailable()Returns the value of thenativeAvailablerecord component.- Returns:
- the value of the
nativeAvailablerecord component
-
packagedForProduction
public boolean packagedForProduction()Returns the value of thepackagedForProductionrecord component.- Returns:
- the value of the
packagedForProductionrecord component
-
supportedProfiles
Returns the value of thesupportedProfilesrecord component.- Returns:
- the value of the
supportedProfilesrecord component
-
supportedAttachments
Returns the value of thesupportedAttachmentsrecord component.- Returns:
- the value of the
supportedAttachmentsrecord component
-