Record Class Tm1SupportWarning

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.version.Tm1SupportWarning
Record Components:
feature - the feature, such as EntitySet Threads
status - what the server does with it
productVersion - the server's product version, or null if not known
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; otherwise null
certified - whether the status was seen on this very version, rather than extrapolated from others

public record Tm1SupportWarning(String feature, Tm1SupportStatus status, @Nullable Tm1Version productVersion, String reason, @Nullable String replacement, @Nullable String condition, boolean certified) extends Record
A call the connected TM1 version may not do what the caller expects with, sent anyway because Tm1SupportMode says so: a read that answers with nothing, a write that's dropped, or a refusal the facts only extrapolate to this version.
  • Constructor Details

  • Method Details

    • of

      public static Tm1SupportWarning of(Tm1Support support, @Nullable Tm1Version productVersion)
      The warning for a support answer, with the fact's reason, replacement and condition.
      Parameters:
      support - what the server does with the feature
      productVersion - the server's product version, or null if not known
      Returns:
      the warning
    • message

      public String message()
      The warning in words, such as EntitySet Threads answers with nothing on TM1 12.6.7: TM1 12 lists running work as jobs. Use EntitySet Jobs instead.
      Returns:
      the message
    • refusal

      The refusal of a call to the feature, before sending it.
      Returns:
      the exception, whose missing is the feature
    • 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
    • productVersion

      public @Nullable Tm1Version productVersion()
      Returns the value of the productVersion record component.
      Returns:
      the value of the productVersion 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
    • certified

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