Record Class PromqlFunctionDefinition.StackAvailability
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.expression.promql.function.PromqlFunctionDefinition.StackAvailability
- Enclosing class:
PromqlFunctionDefinition
public static record PromqlFunctionDefinition.StackAvailability(FunctionAppliesToLifecycle lifecycle, PromqlFunctionDefinition.PromqlDocsVersion since)
extends Record
A single
stack availability entry for a function's docs badge: a lifecycle state and the release it
applies from, for example preview 9.4 or ga 9.5.-
Constructor Summary
ConstructorsConstructorDescriptionStackAvailability(FunctionAppliesToLifecycle lifecycle, PromqlFunctionDefinition.PromqlDocsVersion since) Creates an instance of aStackAvailabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelifecyclerecord component.since()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StackAvailability
public StackAvailability(FunctionAppliesToLifecycle lifecycle, PromqlFunctionDefinition.PromqlDocsVersion since) Creates an instance of aStackAvailabilityrecord class.- Parameters:
lifecycle- the value for thelifecyclerecord componentsince- the value for thesincerecord component
-
-
Method Details
-
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. -
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. -
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). -
lifecycle
Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-