Package com.io7m.quarrel.core
Record Class QCommandTreeResolver.QResolutionErrorDoesNotExist
java.lang.Object
java.lang.Record
com.io7m.quarrel.core.QCommandTreeResolver.QResolutionErrorDoesNotExist
- Record Components:
path- The entered pathbadName- The missing name
- All Implemented Interfaces:
QCommandTreeResolver.QResolutionType
- Enclosing class:
- QCommandTreeResolver
public static record QCommandTreeResolver.QResolutionErrorDoesNotExist(List<String> path, String badName)
extends Record
implements QCommandTreeResolver.QResolutionType
The targeted object does not exist.
-
Constructor Summary
ConstructorsConstructorDescriptionQResolutionErrorDoesNotExist(List<String> path, String badName) The targeted object does not exist. -
Method Summary
Modifier and TypeMethodDescriptionbadName()Returns the value of thebadNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QResolutionErrorDoesNotExist
The targeted object does not exist.
-
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
badName
Returns the value of thebadNamerecord component.- Returns:
- the value of the
badNamerecord component
-