package edu.ucdavis.fiehnlab.spectra.hash.core;

import edu.ucdavis.fiehnlab.spectra.hash.core.impl.SplashVersion1;


/**
 * simple factory to create new hashes
 */
public class SplashFactory {

    public static Splash create() {
        return new SplashVersion1();
    }

    /**
     * the first official splash release
     *
     * @return
     */
    public static Splash createVersion1Splash() {
        return new SplashVersion1();
    }
}

@@ -109,16 +109,83 @@
 rsion1;%0A
+import edu.ucdavis.fiehnlab.spectra.hash.core.impl.SplashVersion2;%0A
 %0A%0A/**%0A *
@@ -315,33 +315,33 @@
 ew SplashVersion
-1
+2
 ();%0A    %7D%0A%0A    /
@@ -460,24 +460,24 @@
 1Splash() %7B%0A
-
         retu
@@ -506,11 +506,185 @@
 );%0A    %7D
+%0A%0A    /**%0A     * the second official splash release%0A     *%0A     * @return%0A     */%0A    public static Splash createVersion2Splash() %7B%0A        return new SplashVersion2();%0A    %7D
 %0A%7D%0A

update splash factory to version 2