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

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

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