Package java.lang

Examples of java.lang.Integer$IntegerCache


        mDB = aDB;

        colNameToNumber = new Hashtable();
        for(int i = 0; i < colNames.length; ++i) {
            // Note: Array indices are 0-based, column numbers are 1-based.
            colNameToNumber.put(colNames[i], new Integer(i+1));
        }
    }
View Full Code Here


        mDB = aDB;

        colNameToNumber = new Hashtable();
        for(int i = 0; i < colNames.length; ++i) {
            // Note: Array indices are 0-based, column numbers are 1-based.
            colNameToNumber.put(colNames[i], new Integer(i+1));
        }
    }
View Full Code Here

            int index = 0;
            //NOTE: occurrences can be used as Sigma X<k,j> when calculating Entropy
            for (InterveningWordsPattern a_pattern : pattern_list.keySet()) {
                //int val = a_pattern.getOccurrences();
                //System.err.println(a_pattern.getPattern() + " " + val);
                matrix_column_map.put(new Integer(index), a_pattern);
                index++;
                InterveningWordsPattern b_pattern = new InterveningWordsPattern(a_pattern.getPattern());
                b_pattern.setOccurrences(a_pattern.getOccurrences());
                b_pattern.setReverse(true);
                matrix_column_map.put(new Integer(index), b_pattern);
                index++;
            }
    }
View Full Code Here

            int index = 0;
            for (String a_phrase : filtered_phrases) {
                String[] curr = a_phrase.split(":");
                String A = curr[0];
                String B = curr[1];
                matrix_row_map.put(new Integer(index), A + ":" + B);
                index++;
                //add reverse pair as well
                matrix_row_map.put(new Integer(index), B + ":" + A);
                index++;
            }
    }
View Full Code Here

     **/
    public Matrix createSparseMatrix() {

        Matrix m = Matrices.create(matrix_row_map.size(), matrix_column_map.size(), false);
        for (int row_num = 0; row_num < matrix_row_map.size(); row_num++) { // for each pattern
            String p = matrix_row_map.get(new Integer(row_num));
            String[] p_sp = p.split(":");
            String a = p_sp[0];
            String b = p_sp[1];
            for (int col_num = 0; col_num < matrix_column_map.size(); col_num++) { // for each phrase
                InterveningWordsPattern col_pattern = matrix_column_map.get(new Integer(col_num));
                String pattern = col_pattern.getPattern();
                String comb_patterns;
                if (col_pattern.getReverse()) { //if the column is a reverse pattern...word2 P word1
                    comb_patterns = ".*\\s" + b + pattern + a + "\\s.*";
                } else {
View Full Code Here

    this._url            =  metadata[0];
    this._ipAddress      =  metadata[1];
    this._archiveDate    =  format.parse(metadata[2]);
    this._contentType    =  metadata[3];
    this._contentLength  = (new Integer(metadata[4])).intValue();
  }
View Full Code Here

   * @param mimeType The MIME type associated with this reader.
   * @param reader The CatalogReader to use.
   */
  public void addReader(String mimeType, CatalogReader reader) {
    if (readerMap.contains(mimeType)) {
      Integer pos = (Integer) readerMap.get(mimeType);
      readerArr.set(pos.intValue(), reader);
    } else {
      readerArr.add(reader);
      Integer pos = new Integer(readerArr.size()-1);
      readerMap.put(mimeType, pos);
    }
  }
View Full Code Here

    public void testPrimitiveInvoke() throws Throwable {
        TestBean bean = new TestBean();
        StaticJavaComponentTargetInvoker invoker = new StaticJavaComponentTargetInvoker(primitiveMethod, bean);
        Object ret = invoker.invokeTarget(new Integer[]{1});
        Integer retI = (Integer) ret;
        Assert.assertEquals(1, retI.intValue());
    }
View Full Code Here

        if(this._maxlengthSet){
      return this._maxlength;
     }
      ValueBinding vb = getValueBinding("maxlength");
      if (vb != null) {
          Integer value = (Integer) vb.getValue(getFacesContext());
          if (null == value) {
          return this._maxlength;
          }
          return (value.intValue());
      } else {
          return (this._maxlength);
      }
      }
View Full Code Here

        if(this._sizeSet){
      return this._size;
     }
      ValueBinding vb = getValueBinding("size");
      if (vb != null) {
          Integer value = (Integer) vb.getValue(getFacesContext());
          if (null == value) {
          return this._size;
          }
          return (value.intValue());
      } else {
          return (this._size);
      }
      }
View Full Code Here

TOP

Related Classes of java.lang.Integer$IntegerCache

Copyright © 2018 www.massapicom. 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.