Record Class Tm1SupportWarning
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.version.Tm1SupportWarning
- Record Components:
feature- the feature, such asEntitySet Threadsstatus- what the server does with itproductVersion- the server's product version, ornullif not knownreason- what TM1 does, in wordsreplacement- the feature to use instead, ornullcondition- forTm1SupportStatus.CONDITIONAL: the server setting it depends on, as a path inActiveConfiguration; otherwisenullcertified- 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 Summary
ConstructorsConstructorDescriptionTm1SupportWarning(String feature, Tm1SupportStatus status, @Nullable Tm1Version productVersion, String reason, @Nullable String replacement, @Nullable String condition, boolean certified) Checks the components. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecertifiedrecord 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.final inthashCode()Returns a hash code value for this object.message()The warning in words, such asEntitySet Threads answers with nothing on TM1 12.6.7: TM1 12 lists running work as jobs. Use EntitySet Jobs instead.static Tm1SupportWarningof(Tm1Support support, @Nullable Tm1Version productVersion) The warning for a support answer, with the fact's reason, replacement and condition.@Nullable Tm1VersionReturns the value of theproductVersionrecord component.reason()Returns the value of thereasonrecord component.refusal()The refusal of a call to the feature, before sending it.@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
-
Tm1SupportWarning
public Tm1SupportWarning(String feature, Tm1SupportStatus status, @Nullable Tm1Version productVersion, String reason, @Nullable String replacement, @Nullable String condition, boolean certified) Checks the components.
-
-
Method Details
-
of
The warning for a support answer, with the fact's reason, replacement and condition.- Parameters:
support- what the server does with the featureproductVersion- the server's product version, ornullif not known- Returns:
- the warning
-
message
The warning in words, such asEntitySet 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
missingis the feature
-
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
-
productVersion
Returns the value of theproductVersionrecord component.- Returns:
- the value of the
productVersionrecord component
-
reason
-
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-
condition
-
certified
-