Class AlbumTypoInspector

    • Constructor Detail

      • AlbumTypoInspector

        public AlbumTypoInspector​(BeaTunes beaTunes)
    • Method Detail

      • getName

        public String getName()
        Description copied from class: Inspector
        Inspector name.
        Specified by:
        getName in class Inspector
        Returns:
        descriptive name for this inspector meant for the UI
      • getDescription

        public String getDescription()
        Description copied from class: Inspector
        Inspector description.
        Specified by:
        getDescription in class Inspector
        Returns:
        long description about this inspector meant for the UI
      • exclude

        protected boolean exclude​(TypoInspector.Attribute attribute1,
                                  TypoInspector.Attribute attribute2)
        Try to exclude multiple disk albums.
        Overrides:
        exclude in class TypoInspector
        Parameters:
        attribute1 - attribute1
        attribute2 - attribute2
        Returns:
        true, if we believe that this is really different albums and not just a typo
      • hasDifferentArtists

        public boolean hasDifferentArtists​(String album1,
                                           String album2)
      • hasDistinctTrackCounts

        public boolean hasDistinctTrackCounts​(String album1,
                                              String album2)
      • hasOneDigitDifference

        public boolean hasOneDigitDifference​(String attribute1,
                                             String attribute2)
      • createIssue

        protected com.tagtraum.beatunes.inspection.AlbumTypoInspector.TypoIssue createIssue​(List<String> similarAttributes)
        Description copied from class: TypoInspector
        Creates an issue for a possible typo.
        Specified by:
        createIssue in class TypoInspector
        Parameters:
        similarAttributes - attributes that these songs have in common
        Returns:
        an issue