Record Class Tm1SupportFact
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.version.Tm1SupportFact
- Record Components:
feature- the feature: a coverage-gate endpoint ID such asEntitySet Threads, or a write, by verb, type and property path, such asPatch User/EnabledorPatch ServerSettings/Administration/StartupChoresstatus- what the versions do with itfrom- the first version it holds for, ornullfor every earlier onebefore- the version it no longer holds from, ornullfor every later oneobserved- the versions it was seen on: the range extrapolates from themreason- what TM1 does, in wordsreplacement- the feature to use instead, ornullcondition- forTm1SupportStatus.CONDITIONAL: the server setting it depends on, as a path inActiveConfiguration, such asAdministration/LegacyTransactionLog; otherwisenull
public record Tm1SupportFact(String feature, Tm1SupportStatus status, @Nullable Tm1Version from, @Nullable Tm1Version before, List<Tm1Version> observed, String reason, @Nullable String replacement, @Nullable String condition)
extends Record
What a range of TM1 versions does with a feature, beyond what their
$metadata
says: a declared endpoint that answers with nothing, a write a version drops or
refuses. The generated model's Tm1SupportFacts.ALL holds every fact, from
spec/tm1-api.json's support section, which is checked against real
servers; every client has the same facts.-
Constructor Summary
ConstructorsConstructorDescriptionTm1SupportFact(String feature, Tm1SupportStatus status, @Nullable Tm1Version from, @Nullable Tm1Version before, List<Tm1Version> observed, String reason, @Nullable String replacement, @Nullable String condition) Checks the components, and copiesobserved. -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(Tm1Version version) Whether the fact holds for a version: it's in[from, before).@Nullable Tm1Versionbefore()Returns the value of thebeforerecord component.@Nullable StringReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.@Nullable Tm1Versionfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.observed()Returns the value of theobservedrecord component.booleanobservedOn(Tm1Version version) Whether the fact was seen on this very version, compared as versions are (so11.8.3500.6is11.8.03500.6), rather than extrapolated to it.reason()Returns the value of thereasonrecord component.@Nullable StringReturns the value of thereplacementrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tm1SupportFact
public Tm1SupportFact(String feature, Tm1SupportStatus status, @Nullable Tm1Version from, @Nullable Tm1Version before, List<Tm1Version> observed, String reason, @Nullable String replacement, @Nullable String condition) Checks the components, and copiesobserved.- Throws:
IllegalArgumentException- if the status isTm1SupportStatus.SUPPORTED, which no fact says: a supported feature has no fact
-
-
Method Details
-
appliesTo
Whether the fact holds for a version: it's in[from, before).- Parameters:
version- the server's product version- Returns:
- whether it's in the range
-
observedOn
Whether the fact was seen on this very version, compared as versions are (so11.8.3500.6is11.8.03500.6), rather than extrapolated to it.- Parameters:
version- the server's product version- Returns:
- whether it's one of
observed()
-
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). -
feature
-
status
-
from
-
before
-
observed
-
reason
-
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-
condition
-