PageSknCodeBitSet.java 619 Bytes
package com.yoho.search.models.recall;

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

public class PageSknCodeBitSet implements Serializable{

    public static final int maxValue = 100000;

    private static final long serialVersionUID = 7185024266096124078L;
    private BitSet bitSet;

    public PageSknCodeBitSet(){
        this.bitSet = new BitSet(maxValue);
    }

    public void add(int bitSetIndex) {
       if(bitSetIndex>maxValue){
           return;
       }
        this.bitSet.set(bitSetIndex);
    }

    public BitSet getBitSet() {
        return bitSet;
    }

}