src/main/java/pt/it/av/tnav/ml/tm/StopWords/EnglishStopWords.java
public synchronized static StopWords build() {
    StopWords rv = null;
    if (wrsw == null) {
      rv = new EnglishStopWords();
      wrsw = new WeakReference<>(rv);
    } else {
      rv = wrsw.get();
      if (rv == null) {
        rv = new EnglishStopWords();
        wrsw = new WeakReference<>(rv);
      }
    }
    return rv;
  }
/**
   * Builds a static {@link WeakReference} to a {@link StopWords} class.
   * <p>
   *   This method should be used whenever the {@link StopWords} will be built and destroy multiple times.
   *   It will also share a single stemmer through several process/threads.
   * </p>
   *
   * @return {@link StopWords} reference that points to a {@link EnglishStopWords}
   */
Builds a static  WeakReference to a  StopWords class.

This method should be used whenever the  StopWords will be built and destroy multiple times.
It will also share a single stemmer through several process/threads.

@return  StopWords reference that points to a  EnglishStopWords
Builds a static WeakReference to a StopWords class . This method should be used whenever the StopWords will be built and destroy multiple times . It will also share a single stemmer through several process / threads . @return StopWords reference that points to a EnglishStopWords
public synchronized static StopWords build() {
    StopWords rv = null;
    if (wrsw == null) {
      rv = new EnglishStopWords();
      wrsw = new WeakReference<>(rv);
    } else {
      rv = wrsw.get();
      if (rv == null) {
        rv = new EnglishStopWords();
        wrsw = new WeakReference<>(rv);
      }
    }
    return rv;
  }
public synchronized static StopWords build ( ) { StopWords rv = null ; if ( wrsw == null ) { rv = new EnglishStopWords ( ) ; wrsw = new WeakReference < > ( rv ) ; } else { rv = wrsw . get ( ) ; if ( rv == null ) { rv = new EnglishStopWords ( ) ; wrsw = new WeakReference < > ( rv ) ; } } return rv ; }
Builds a static {@link WeakReference} to a {@link StopWords} class.
Builds a static { @link WeakReference } to a { @link StopWords } class .