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

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

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