import java.util.Random; class IntegerPair { private int a; private int b; public IntegerPair(int a, int b) { this.a = a; this.b = b; } public int getA() { return a; } public void setA(int a) { this.a = a; } public int getB() { return b; } public void setB(int b) { this.b = b; } } public class Document { private int id = -1; private int[] tokens = null; private String filename = ""; private double sim = 0.0; private static Random rnd = new Random(System.currentTimeMillis()); public Document(Integer[] tokens, String filename, int id) { if (tokens != null) { if (this.tokens == null) this.tokens = new int[tokens.length]; for (int i=0 ; i < tokens.length ; i++) { this.tokens[i] = tokens[i]; } } this.filename = filename; this.id = id; } private IntegerPair hashFuncGen() { return null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)