Skip to content
Permalink
Browse files

made fingerprint Serializable

  • Loading branch information...
jonalv authored and egonw committed Jan 17, 2012
1 parent c67a7ff commit e0a77e9cf3a8638ad0ff5099380211c929cefb21
@@ -33,7 +33,11 @@
@TestClass("org.openscience.cdk.fingerprint.BitSetFingerprintTest")
public class BitSetFingerprint implements IBitFingerprint {

private BitSet bitset;
/**
*
*/
private static final long serialVersionUID = 9034774011095165227L;
private BitSet bitset;

public BitSetFingerprint(BitSet bitset) {
this.bitset = bitset;
@@ -22,6 +22,7 @@
*/
package org.openscience.cdk.fingerprint;

import java.io.Serializable;
import java.util.BitSet;

/**
@@ -30,7 +31,7 @@
* @author jonalv
* @cdk.module core
*/
public interface IBitFingerprint {
public interface IBitFingerprint extends Serializable {

/**
* @return the number of bits set to true in the fingerprint.
@@ -22,14 +22,16 @@
*/
package org.openscience.cdk.fingerprint;

import java.io.Serializable;

/**
* Interface for count fingerprint representations.
*
* @author jonalv
* @cdk.module core
*
*/
public interface ICountFingerprint {
public interface ICountFingerprint extends Serializable {

/**
* @return the size of the fingerprint.
@@ -42,7 +42,11 @@
@TestClass("org.openscience.cdk.fingerprint.IntArrayCountFingerprintTest")
public class IntArrayCountFingerprint implements ICountFingerprint {

int[] hitHashes;
/**
*
*/
private static final long serialVersionUID = 8656072054328822795L;
int[] hitHashes;
int[] numOfHits;
private boolean behaveAsBitFingerprint;

@@ -37,7 +37,11 @@
*/
public class IntArrayFingerprint implements IBitFingerprint {

private int[] trueBits;
/**
*
*/
private static final long serialVersionUID = 5175105019921245323L;
private int[] trueBits;

public IntArrayFingerprint(Map<String, Integer> rawFingerPrint) {
trueBits = new int[rawFingerPrint.size()];

0 comments on commit e0a77e9

Please sign in to comment.
You can’t perform that action at this time.