SingleDumpVersionJDKStringKeyFactory.java :  » Wiki-Engine » jwpl » de » tudarmstadt » ukp » wikipedia » datamachine » dump » version » Java Open Source

Java Open Source » Wiki Engine » jwpl 
jwpl » de » tudarmstadt » ukp » wikipedia » datamachine » dump » version » SingleDumpVersionJDKStringKeyFactory.java
/*******************************************************************************
 * Copyright (c) 2010 Torsten Zesch.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * Contributors:
 *     Torsten Zesch - initial API and implementation
 ******************************************************************************/
package de.tudarmstadt.ukp.wikipedia.datamachine.dump.version;

import de.tudarmstadt.ukp.wikipedia.wikimachine.dump.version.IDumpVersion;
import de.tudarmstadt.ukp.wikipedia.wikimachine.dump.version.IDumpVersionFactory;
import de.tudarmstadt.ukp.wikipedia.wikimachine.hashing.StringHashCodeDisabled;

public class SingleDumpVersionJDKStringKeyFactory implements
    IDumpVersionFactory {

  @Override
  public IDumpVersion getDumpVersion() {
    IDumpVersion dumpVersion = null;
    try {
      dumpVersion = new SingleDumpVersionJDKGeneric<String, StringHashCodeDisabled>(
          StringHashCodeDisabled.class);
    } catch (Exception e) {
      dumpVersion = null;
    }
    return dumpVersion;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.