Record Class Tm1Support
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.version.Tm1Support
- Record Components:
feature- the featurestatus- what the server does with it:Tm1SupportStatus.SUPPORTEDif nothing says otherwisefact- the fact the status comes from, ornullif it comes from the server's$metadataor no fact covers the featurecertified- whether the status was seen on this very version: the server's own$metadatasays so, or the fact was observed on it. A status extrapolated from other versions isn't, nor isTm1SupportStatus.SUPPORTEDfor want of a fact
public record Tm1Support(String feature, Tm1SupportStatus status, @Nullable Tm1SupportFact fact, boolean certified)
extends Record
What a TM1 server does with one feature: the answer to
Tm1Capabilities.status(String).
A feature is a coverage-gate endpoint ID, such as EntitySet Threads,
ActionImport ExecuteMDX, Action Cube/Unload or
Action Collection(Cube)/Op, or a write, by verb, type and property path, such
as Patch User/Enabled.
-
Constructor Summary
ConstructorsConstructorDescriptionTm1Support(String feature, Tm1SupportStatus status, @Nullable Tm1SupportFact fact, boolean certified) Checks the components. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecertifiedrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Tm1SupportFactfact()Returns the value of thefactrecord component.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.static Tm1Supportof(String feature, @Nullable Tm1Version productVersion, List<Tm1SupportFact> facts) What the facts say a version does with a feature, without its$metadata: the status of the fact whose range holds the version, orTm1SupportStatus.SUPPORTEDif none does.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tm1Support
public Tm1Support(String feature, Tm1SupportStatus status, @Nullable Tm1SupportFact fact, boolean certified) Checks the components.- Throws:
IllegalArgumentException- if the feature isn't an endpoint ID or a write, or a fact is given forTm1SupportStatus.SUPPORTED, or one for another feature
-
-
Method Details
-
of
public static Tm1Support of(String feature, @Nullable Tm1Version productVersion, List<Tm1SupportFact> facts) What the facts say a version does with a feature, without its$metadata: the status of the fact whose range holds the version, orTm1SupportStatus.SUPPORTEDif none does. Certified if the fact was observed on that very version. With no version, no fact applies.- Parameters:
feature- the featureproductVersion- the server's product version, ornullif not knownfacts- the facts, such asTm1SupportFacts.ALL: at most one for the feature holds any version- Returns:
- the answer
- Throws:
IllegalArgumentException- if the feature isn't an endpoint ID or a write, or two facts for it hold the version
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
feature
-
status
-
fact
-
certified
-