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 unanswered
useInstead - names that answer it
Enclosing class:
NonDescriptiveNames

public static record NonDescriptiveNames.Group(List<String> names, boolean positional, String problem, List<String> useInstead) extends Record
One group of banned names with what is published about it.
  • Constructor Details

    • Group

      public Group(List<String> names, boolean positional, String problem, List<String> useInstead)
      Creates an instance of a Group record class.
      Parameters:
      names - the value for the names record component
      positional - the value for the positional record component
      problem - the value for the problem record component
      useInstead - the value for the useInstead record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • names

      public List<String> names()
      Returns the value of the names record component.
      Returns:
      the value of the names record component
    • positional

      public boolean positional()
      Returns the value of the positional record component.
      Returns:
      the value of the positional record component
    • problem

      public String problem()
      Returns the value of the problem record component.
      Returns:
      the value of the problem record component
    • useInstead

      public List<String> useInstead()
      Returns the value of the useInstead record component.
      Returns:
      the value of the useInstead record component