Record Class PlantUmlLimits

java.lang.Object
java.lang.Record
dev.archunitjava.diagram.plantuml.PlantUmlLimits

public record PlantUmlLimits(int maxCharacters, int maxLines, int maxLineLength, int maxComponents, int maxEdges) extends Record
Hard parser bounds applied before and during parsing.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlantUmlLimits(int maxCharacters, int maxLines, int maxLineLength, int maxComponents, int maxEdges)
    Creates an instance of a PlantUmlLimits record class.
  • 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.
    int
    Returns the value of the maxCharacters record component.
    int
    Returns the value of the maxComponents record component.
    int
    Returns the value of the maxEdges record component.
    int
    Returns the value of the maxLineLength record component.
    int
    Returns the value of the maxLines 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
  • Constructor Details

    • PlantUmlLimits

      public PlantUmlLimits(int maxCharacters, int maxLines, int maxLineLength, int maxComponents, int maxEdges)
      Creates an instance of a PlantUmlLimits record class.
      Parameters:
      maxCharacters - the value for the maxCharacters record component
      maxLines - the value for the maxLines record component
      maxLineLength - the value for the maxLineLength record component
      maxComponents - the value for the maxComponents record component
      maxEdges - the value for the maxEdges record component
  • Method Details

    • defaults

      public static PlantUmlLimits defaults()
    • 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. All components in this record class 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.
    • maxCharacters

      public int maxCharacters()
      Returns the value of the maxCharacters record component.
      Returns:
      the value of the maxCharacters record component
    • maxLines

      public int maxLines()
      Returns the value of the maxLines record component.
      Returns:
      the value of the maxLines record component
    • maxLineLength

      public int maxLineLength()
      Returns the value of the maxLineLength record component.
      Returns:
      the value of the maxLineLength record component
    • maxComponents

      public int maxComponents()
      Returns the value of the maxComponents record component.
      Returns:
      the value of the maxComponents record component
    • maxEdges

      public int maxEdges()
      Returns the value of the maxEdges record component.
      Returns:
      the value of the maxEdges record component