Record Class NodeIdManagerRegistry.LayoutKey

java.lang.Object
java.lang.Record
net.bmahe.genetics4j.neat.NodeIdManagerRegistry.LayoutKey
Enclosing class:
NodeIdManagerRegistry

private static record NodeIdManagerRegistry.LayoutKey(List<Integer> inputNodeIds, List<Integer> outputNodeIds, long hiddenStart, long hiddenEnd) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final long
    The field for the hiddenEnd record component.
    private final long
    The field for the hiddenStart record component.
    private final List<Integer>
    The field for the inputNodeIds record component.
    private final List<Integer>
    The field for the outputNodeIds record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    LayoutKey(List<Integer> inputNodeIds, List<Integer> outputNodeIds, long hiddenStart, long hiddenEnd)
    Creates an instance of a LayoutKey record class.
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the hiddenEnd record component.
    long
    Returns the value of the hiddenStart record component.
    Returns the value of the inputNodeIds record component.
    Returns the value of the outputNodeIds record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • inputNodeIds

      private final List<Integer> inputNodeIds
      The field for the inputNodeIds record component.
    • outputNodeIds

      private final List<Integer> outputNodeIds
      The field for the outputNodeIds record component.
    • hiddenStart

      private final long hiddenStart
      The field for the hiddenStart record component.
    • hiddenEnd

      private final long hiddenEnd
      The field for the hiddenEnd record component.
  • Constructor Details

    • LayoutKey

      private LayoutKey(NeatNodeLayout layout)
    • LayoutKey

      private LayoutKey(List<Integer> inputNodeIds, List<Integer> outputNodeIds, long hiddenStart, long hiddenEnd)
      Creates an instance of a LayoutKey record class.
      Parameters:
      inputNodeIds - the value for the inputNodeIds record component
      outputNodeIds - the value for the outputNodeIds record component
      hiddenStart - the value for the hiddenStart record component
      hiddenEnd - the value for the hiddenEnd 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.
    • inputNodeIds

      public List<Integer> inputNodeIds()
      Returns the value of the inputNodeIds record component.
      Returns:
      the value of the inputNodeIds record component
    • outputNodeIds

      public List<Integer> outputNodeIds()
      Returns the value of the outputNodeIds record component.
      Returns:
      the value of the outputNodeIds record component
    • hiddenStart

      public long hiddenStart()
      Returns the value of the hiddenStart record component.
      Returns:
      the value of the hiddenStart record component
    • hiddenEnd

      public long hiddenEnd()
      Returns the value of the hiddenEnd record component.
      Returns:
      the value of the hiddenEnd record component