Record Class UStatement.UnifierWithUnconsumedStatements
java.lang.Object
java.lang.Record
com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
- Enclosing interface:
UStatement
public static record UStatement.UnifierWithUnconsumedStatements(Unifier unifier, com.google.common.collect.ImmutableList<? extends StatementTree> unconsumedStatements)
extends Record
Tuple of a Unifier and a list of statements that are still waiting to be matched.
- Author:
- lowasser@google.com (Louis Wasserman)
-
Constructor Summary
ConstructorsConstructorDescriptionUnifierWithUnconsumedStatements(Unifier unifier, com.google.common.collect.ImmutableList<? extends StatementTree> unconsumedStatements) Creates an instance of aUnifierWithUnconsumedStatementsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate(Unifier unifier, List<? extends StatementTree> unconsumedStatements) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.com.google.common.collect.ImmutableList<? extends StatementTree> Returns the value of theunconsumedStatementsrecord component.unifier()Returns the value of theunifierrecord component.
-
Constructor Details
-
UnifierWithUnconsumedStatements
public UnifierWithUnconsumedStatements(Unifier unifier, com.google.common.collect.ImmutableList<? extends StatementTree> unconsumedStatements) Creates an instance of aUnifierWithUnconsumedStatementsrecord class.- Parameters:
unifier- the value for theunifierrecord componentunconsumedStatements- the value for theunconsumedStatementsrecord component
-
-
Method Details
-
create
public static UStatement.UnifierWithUnconsumedStatements create(Unifier unifier, List<? extends StatementTree> unconsumedStatements) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
unifier
Returns the value of theunifierrecord component.- Returns:
- the value of the
unifierrecord component
-
unconsumedStatements
Returns the value of theunconsumedStatementsrecord component.- Returns:
- the value of the
unconsumedStatementsrecord component
-