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 as EntitySet Threads, or a write, by verb, type and property path, such as Patch User/Enabled or Patch ServerSettings/Administration/StartupChores
status - what the versions do with it
from - the first version it holds for, or null for every earlier one
before - the version it no longer holds from, or null for every later one
observed - the versions it was seen on: the range extrapolates from them
reason - what TM1 does, in words
replacement - the feature to use instead, or null
condition - for Tm1SupportStatus.CONDITIONAL: the server setting it depends on, as a path in ActiveConfiguration, such as Administration/LegacyTransactionLog; otherwise null

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 Details

  • Method Details

    • appliesTo

      public boolean appliesTo(Tm1Version version)
      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

      public boolean observedOn(Tm1Version version)
      Whether the fact was seen on this very version, compared as versions are (so 11.8.3500.6 is 11.8.03500.6), rather than extrapolated to it.
      Parameters:
      version - the server's product version
      Returns:
      whether it's one of observed()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • feature

      public String feature()
      Returns the value of the feature record component.
      Returns:
      the value of the feature record component
    • status

      public Tm1SupportStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • from

      public @Nullable Tm1Version from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • before

      public @Nullable Tm1Version before()
      Returns the value of the before record component.
      Returns:
      the value of the before record component
    • observed

      public List<Tm1Version> observed()
      Returns the value of the observed record component.
      Returns:
      the value of the observed record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • replacement

      public @Nullable String replacement()
      Returns the value of the replacement record component.
      Returns:
      the value of the replacement record component
    • condition

      public @Nullable String condition()
      Returns the value of the condition record component.
      Returns:
      the value of the condition record component