Class AbstractImportService<T>

java.lang.Object
org.ctan.site.services.catalogue.AbstractImportService<T>
Type Parameters:
T - the class of the encapsulated store
Direct Known Subclasses:
AuthorsImportService, PkgsImportService, TopicsImportService

public abstract class AbstractImportService<T> extends Object
This abstract base class provides the fundamentals for the catalogue imports from ML files.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @NonNull File
    The field entries contains the base directory.
    protected T
    The field store contains the encapsulated store.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    neq(String a, String b)
    The method neq provides means to compare two strings in a null-safe fashion.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • store

      @NonNull protected T store
      The field store contains the encapsulated store.
    • entries

      @NonNull protected @NonNull File entries
      The field entries contains the base directory.
  • Method Details

    • neq

      protected boolean neq(String a, String b)
      The method neq provides means to compare two strings in a null-safe fashion.
      Parameters:
      a - the first argument
      b - the second argument
      Returns:
      true iff the arguments are not equal