Module org.elasticsearch.server
Record Class IndexNameExpressionResolver.ExpressionList.Expression
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.ExpressionList.Expression
- Enclosing class:
- IndexNameExpressionResolver.ExpressionList
-
Constructor Summary
ConstructorDescriptionExpression
(String expression, boolean isWildcard, boolean isExclusion) Creates an instance of aExpression
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpression
record component.get()
final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisExclusion
record component.boolean
Returns the value of theisWildcard
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Expression
Creates an instance of aExpression
record class.- Parameters:
expression
- the value for theexpression
record componentisWildcard
- the value for theisWildcard
record componentisExclusion
- the value for theisExclusion
record component
-
-
Method Details
-
get
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expression
Returns the value of theexpression
record component.- Returns:
- the value of the
expression
record component
-
isWildcard
public boolean isWildcard()Returns the value of theisWildcard
record component.- Returns:
- the value of the
isWildcard
record component
-
isExclusion
public boolean isExclusion()Returns the value of theisExclusion
record component.- Returns:
- the value of the
isExclusion
record component
-