Record Class ProposedLayout.SiblingGroup

java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.layout.ProposedLayout.SiblingGroup
Record Components:
pathPattern - path pattern that all the directories match
memberCount - number of directories in the group
matchingCount - number of them that share the most common structure
outliers - paths of the directories that do not share it, relative to the surveyed directory
Enclosing class:
ProposedLayout

public static record ProposedLayout.SiblingGroup(String pathPattern, int memberCount, int matchingCount, List<String> outliers) extends Record
SiblingGroup describes a set of directories that sit in the same place in the tree and so are expected to look the same.
  • Constructor Details

    • SiblingGroup

      public SiblingGroup(String pathPattern, int memberCount, int matchingCount, List<String> outliers)
      Creates an instance of a SiblingGroup record class.
      Parameters:
      pathPattern - the value for the pathPattern record component
      memberCount - the value for the memberCount record component
      matchingCount - the value for the matchingCount record component
      outliers - the value for the outliers 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 '=='.
      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.
    • pathPattern

      public String pathPattern()
      Returns the value of the pathPattern record component.
      Returns:
      the value of the pathPattern record component
    • memberCount

      public int memberCount()
      Returns the value of the memberCount record component.
      Returns:
      the value of the memberCount record component
    • matchingCount

      public int matchingCount()
      Returns the value of the matchingCount record component.
      Returns:
      the value of the matchingCount record component
    • outliers

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