Code example for BitSet

Methods: size

0
    protected BitSetIDFactory() 
    { 
        super(); 
        ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new BitSetCapacityCheck(), 30000, 30000); 
        initialize(); 
        _log.info("IDFactory: "+ _freeIds.size() + " id's available.");
    } 
 
    public synchronized void initialize() 
    { 
        try 
        { 
            _freeIds     = new BitSet(PrimeFinder.nextPrime(100000));
            _freeIds.clear();
            _freeIdCount = new AtomicInteger(FREE_OBJECT_ID_SIZE);
 
            for (int usedObjectId : extractUsedObjectIDTable())
            { 
                int objectID = usedObjectId - FIRST_OID;
                if (objectID < 0)
Connect your IDE to all the code out there  Get Codota for Java