Examples of BitSet


Examples of java.util.BitSet

      }
    } else if(source == editChecklistTable) {
      if(event instanceof TableMultiSelectEvent) {
        TableMultiSelectEvent tmse = (TableMultiSelectEvent)event;
        if(tmse.getAction().equals("save")) {
          BitSet selection = tmse.getSelection();
          updateCheckpointsFor(selectedIdentity, selection);
          initManageTable(ureq);
        }
        cmc.deactivate();
      }
View Full Code Here

Examples of java.util.BitSet

          CloseableModalController manageParticipantsModalCntrl = new CloseableModalController(getWindowControl(), "close", participantsVC, true, translate("dates.table.participant.manage"));
          manageParticipantsModalCntrl.activate();
        }
      } else {
        TableMultiSelectEvent tmse = (TableMultiSelectEvent)event;
        BitSet selection = tmse.getSelection();
        //delete all users from the selected dates
        if(tmse.getAction().equals(DENListTableDataModel.DELETE_ACTION) && selection.cardinality() > 0) {
          removed = denManager.getSelectedEventParticipants(dateList, selection);
          dateList = denManager.deleteParticipants(ores, courseNode, denManager.getSelectedEventIDs(dateList, selection));
          listTableData.setObjects(dateList);
          //send notification mail
          createRemovedNotificationMail(ureq, dateList.get(0).getSubject());
        } else if(tmse.getAction().equals(DENListTableDataModel.MAIL_ACTION) && selection.cardinality() > 0) {
          //send email to all users from the selected dates
          List<Identity> participants = denManager.getSelectedEventParticipants(dateList, selection);
          createParticipantsMail(ureq, participants);
        } else if(selection.cardinality() == 0) {
          getWindowControl().setWarning(translate("participants.message.empty"));
        }
      }
    } else if(source == formManageParticipants && event == DENManageParticipantsForm.ADD_PARTICIPANTS) {
      //open user search controller to manually add users in date
View Full Code Here

Examples of java.util.BitSet

        }
        else if ((flags&FLAG_RETRIEVING_DETACHED_STATE)!=0)
        {
            // Retrieving the detached state from the detached object
            // Don't need the id or version since they can't change
            BitSet jdoLoadedFields = (BitSet)currentState[2];
            for (int i = 0; i < this.loadedFields.length; i++)
            {
                this.loadedFields[i] = jdoLoadedFields.get(i);
            }

            BitSet jdoModifiedFields = (BitSet)currentState[3];
            for (int i = 0; i < dirtyFields.length; i++)
            {
                dirtyFields[i] = jdoModifiedFields.get(i);
            }
            setVersion(currentState[1]);
            return currentState;
        }
        else
        {
            // Updating the detached state in the detached object with our state
            Object[] state = new Object[4];
            state[0] = myID;
            state[1] = getVersion(myPC);

            // Loaded fields
            BitSet loadedState = new BitSet();
            for (int i = 0; i < loadedFields.length; i++)
            {
                if (loadedFields[i])
                {
                    loadedState.set(i);
                }
                else
                {
                    loadedState.clear(i);
                }
            }
            state[2] = loadedState;

            // Modified fields
            BitSet modifiedState = new BitSet();
            for (int i = 0; i < dirtyFields.length; i++)
            {
                if (dirtyFields[i])
                {
                    modifiedState.set(i);
                }
                else
                {
                    modifiedState.clear(i);
                }
            }
            state[3] = modifiedState;

            return state;
View Full Code Here

Examples of java.util.BitSet

  public CollisionMap(final int width, final int height) {
    this.width = width;
    this.height = height;
    colls = new BitSet[width];
    for (int i = 0; i < width; i++) {
      colls[i] = new BitSet();
    }

  }
View Full Code Here

Examples of java.util.BitSet

   
    if (y < 0 || y - 1 + height >= this.height) {
      return true;
    }

    final BitSet result = new BitSet();
    for (int i = x; i < x + width; i++) {
      result.or(colls[i]);
    }

    return !result.get(y, y + height).isEmpty();
  }
View Full Code Here

Examples of macromedia.asc.util.BitSet

    return (items.size() != 0) ? items.last().pos() : 0;
  }

  public BitSet getGenBits()
  {
    BitSet genbits = null;

    for (Node n : items)
      genbits = reset_set(genbits, n.getKillBits(), n.getGenBits());

    return genbits;
View Full Code Here

Examples of net.sf.jcontracts.antlr.collections.impl.BitSet

    protected int markBitsetForGen(BitSet p)
    {
        for (int i = 0; i < bitsetsUsed.size(); i++)
        {
            BitSet set = (BitSet) bitsetsUsed.elementAt(i);
            if (p.equals(set))
            {
                return i;
            }
        }
View Full Code Here

Examples of org.antlr.misc.BitSet

    if ( follow.tokenTypeSet==null ) {
      words = new long[1];
            tokenTypeList = new ArrayList<Integer>();
        }
    else {
      BitSet bits = BitSet.of(follow.tokenTypeSet);
      words = bits.toPackedArray();
            tokenTypeList = follow.tokenTypeSet.toList();
        }
    // use the target to convert to hex strings (typically)
    String[] wordStrings = new String[words.length];
    for (int j = 0; j < words.length; j++) {
View Full Code Here

Examples of org.antlr.runtime.BitSet

     */
    protected void syncToSet() {
        // Compute the followset that is in context wherever we are in the
        // rule chain/stack
        //
        BitSet follow = state.following[state._fsp]; //computeContextSensitiveRuleFOLLOW();

        syncToSet( follow );
    }
View Full Code Here

Examples of org.apache.lucene.util.BitSet

                    if (nativeOrdinal != RandomAccessOrds.NO_MORE_ORDS) {
                        sLat.set(i, lat.get(nativeOrdinal));
                        sLon.set(i, lon.get(nativeOrdinal));
                    }
                }
                BitSet set = builder.buildDocsWithValuesSet();
                data = new GeoPointDoubleArrayAtomicFieldData.Single(sLon, sLat, set);
            } else {
                data = new GeoPointDoubleArrayAtomicFieldData.WithOrdinals(lon, lat, build, reader.maxDoc());
            }
            success = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.