Record Class Tm1Support

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.version.Tm1Support
Record Components:
feature - the feature
status - what the server does with it: Tm1SupportStatus.SUPPORTED if nothing says otherwise
fact - the fact the status comes from, or null if it comes from the server's $metadata or no fact covers the feature
certified - whether the status was seen on this very version: the server's own $metadata says so, or the fact was observed on it. A status extrapolated from other versions isn't, nor is Tm1SupportStatus.SUPPORTED for 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 Details

  • 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, or Tm1SupportStatus.SUPPORTED if none does. Certified if the fact was observed on that very version. With no version, no fact applies.
      Parameters:
      feature - the feature
      productVersion - the server's product version, or null if not known
      facts - the facts, such as Tm1SupportFacts.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

      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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
    • fact

      public @Nullable Tm1SupportFact fact()
      Returns the value of the fact record component.
      Returns:
      the value of the fact record component
    • certified

      public boolean certified()
      Returns the value of the certified record component.
      Returns:
      the value of the certified record component