Record Class NonDescriptiveNames.Group
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.NonDescriptiveNames.Group
- Record Components:
names- the names, the full word first (temp,tmp)positional- true when a name also bans itself followed by digits (arg0,arg1, ...)problem- the question the name leaves unanswereduseInstead- names that answer it
- Enclosing class:
NonDescriptiveNames
-
Constructor Summary
Constructors -
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.names()Returns the value of thenamesrecord component.booleanReturns the value of thepositionalrecord component.problem()Returns the value of theproblemrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuseInsteadrecord component.
-
Constructor Details
-
Group
Creates an instance of aGrouprecord class.- Parameters:
names- the value for thenamesrecord componentpositional- the value for thepositionalrecord componentproblem- the value for theproblemrecord componentuseInstead- the value for theuseInsteadrecord component
-
-
Method Details
-
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. -
names
-
positional
public boolean positional()Returns the value of thepositionalrecord component.- Returns:
- the value of the
positionalrecord component
-
problem
-
useInstead
Returns the value of theuseInsteadrecord component.- Returns:
- the value of the
useInsteadrecord component
-