Class AbstractGrouping

java.lang.Object
org.apache.maven.index.search.grouping.AbstractGrouping
All Implemented Interfaces:
Grouping
Direct Known Subclasses:
GAGrouping, GAVGrouping, GGrouping, RGAVGrouping, RGGrouping

public abstract class AbstractGrouping extends Object implements Grouping
An abstract Grouping implementation.
Author:
Tamas Cservenak
  • Constructor Details

    • AbstractGrouping

      public AbstractGrouping()
    • AbstractGrouping

      public AbstractGrouping(Comparator<ArtifactInfo> comparator)
  • Method Details

    • addArtifactInfo

      public boolean addArtifactInfo(Map<String,ArtifactInfoGroup> result, ArtifactInfo artifactInfo)
      Description copied from interface: Grouping
      Adds a single ArticatInfo to the result map.
      Specified by:
      addArtifactInfo in interface Grouping
      Parameters:
      result -
      artifactInfo -
      Returns:
      true, if the Grouping changed by addition of new artifactInfo
    • getGroupKey

      protected abstract String getGroupKey(ArtifactInfo artifactInfo)