Record Class ClaferModel

java.lang.Object
java.lang.Record
org.clafer.ig.ClaferModel
Record Components:
topLevel - the top-level clafers

public record ClaferModel(List<ClaferModel.Clafer> topLevel) extends Record
An instance of a model, as claferIG's ClaferModel.hs has it: its top-level clafers, each with its children. A state of a trace is one too.
  • Constructor Details

  • Method Details

    • traverse

      All the clafers, each before its children.
    • toString

      public String toString()
      The text of the instance: each clafer on a line, indented by its depth.
      Specified by:
      toString in class Record
    • show

      public static String show(ClaferModel.Clafer c)
      The text of a clafer and its children, as show gives it.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • topLevel

      Returns the value of the topLevel record component.
      Returns:
      the value of the topLevel record component