Examples of IntHashtable


Examples of com.sun.tools.javac.util.IntHashTable

@SuppressWarnings("unchecked"// Unsafe reflection.
static Set<Entry<JCTree, Integer>> getEntries(EndPosTable table) {
   if (isEmpty(table)) {
     return Collections.emptySet();
   }
   IntHashTable rawMap = getMap(table);
   Set<Map.Entry<JCTree, Integer>> entries = new HashSet<>();
   Object[] objs;
   int[] ints;
   try {
     objs = (Object[]) OBJS_FIELD.get(rawMap);
View Full Code Here

Examples of jsky.util.IntHashtable

    void encodeDone() throws IOException {
        int transparentIndex = -1;
        int transparentRgb = -1;
        // Put all the pixels into a hash table.
        colorHash = new IntHashtable();
        int index = 0;
        for (int row = 0; row < height; ++row) {
//            int rowOffset = row * width;
            for (int col = 0; col < width; ++col) {
                int rgb = rgbPixels[row][col];
View Full Code Here

Examples of net.rim.device.api.util.IntHashtable

        _wFields.addField(EVENT_ON_CONN_ACCEPTED);
        _wFields.addField(EVENT_ON_BBM_MENU_INVITE);
        _wFields.addField(EVENT_ON_USER_REACHABLE);
        _wFields.addField(EVENT_ON_DATA_EXPIRED);
        _hostedConn = UNDEFINED;
        _joinReq2ScriptReq = new IntHashtable();
    }
View Full Code Here

Examples of net.rim.device.api.util.IntHashtable

        // store the application descriptor and push in RuntimeStore so that it can be accessed from daemon.
        _daemonStore = PushDaemon.DaemonStore.loadFromStore();
        // persistent the application descriptor
        PushPersistentStore.setAppDescArgs( ApplicationDescriptor.currentApplicationDescriptor().getArgs() );

        _pushListeners = new IntHashtable();
        _onExitHandler = new OnExitHandler();
    }
View Full Code Here

Examples of net.rim.device.api.util.IntHashtable

     *            The message to display
     * @param editable
     *            True is the message is editable, otherwise false
     */
    public MessageScreen(final Message message, final boolean editable) {
        _fieldTable = new IntHashtable();
        _editable = editable;

        // Set the message and display its subject as the title if the
        // message exists.
        _message = message;
View Full Code Here

Examples of net.rim.device.api.util.IntHashtable

     *
     * @return A hash table of Category objects, one for each record in the
     *         Category table
     */
    IntHashtable getCategories() {
        final IntHashtable categories = new IntHashtable();
        try {
            // Read in all records from the Category table
            final Statement statement =
                    _db.createStatement("SELECT * FROM Category");
            statement.prepare();
            final Cursor cursor = statement.getCursor();

            Row row;
            int id;
            String name;
            Category category;

            // Iterate through the result set. For each row, create a new
            // Category object and add it to the hash table.
            while (cursor.next()) {
                row = cursor.getRow();
                id = row.getInteger(0);
                name = row.getString(1);
                category = new Category(id, name);
                categories.put(id, category);
            }
            statement.close();
            cursor.close();
        } catch (final DatabaseException dbe) {
            SQLiteDemo.errorDialog(dbe.toString());
View Full Code Here

Examples of org.eclipse.php.internal.core.util.collections.IntHashtable

    Preferences prefs = PHPProjectPreferences.getModelPreferences();
    debugResponseTimeout = prefs
        .getInt(PHPDebugCorePreferenceNames.DEBUG_RESPONSE_TIMEOUT);

    this.socket = socket;
    requestsTable = new IntHashtable();
    responseTable = new IntHashtable();
    responseHandlers = new Hashtable<Integer, ResponseHandler>();
    messageHandlers = new HashMap<Integer, IDebugMessageHandler>();
    theThread = new Thread(this, "PHP Debug Conection"); //$NON-NLS-1$
    theThread.start();
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.util.collections.IntHashtable

  private static final String SYSTEM_DEBUG_PROPERTY = "org.eclipse.php.debug.ui.activeDebugging"; //$NON-NLS-1$
  private static PHPSessionLaunchMapper instance;
  private IntHashtable map;

  private PHPSessionLaunchMapper() {
    map = new IntHashtable(10);
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.util.collections.IntHashtable

   * Return message according to its type
   *
   * @throws Exception
   */
  public static IDebugMessage getMessage(int type) throws Exception {
    IntHashtable messages = getInstance().getMessages();
    if (messages.containsKey(type)) {
      return (IDebugMessage) messages.get(type).getClass().newInstance();
    } else {
      throw new Exception("Can't find message for ID = " + type //$NON-NLS-1$
          + " in Debug messages registry!");//$NON-NLS-1$
    }
  }
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.