Package java.text

Examples of java.text.FieldPosition


    }
   
   
    public FormattedValue formatToFormatted(double memInK) {
      StringBuffer toAppendTo = new StringBuffer();
      FieldPosition pos = new FieldPosition(0);
     
      FormattedValue formed = formatToFormatted(memInK, toAppendTo, pos, false);
     
      return formed;
  }
View Full Code Here


     *
     * @param c Complex object to format.
     * @return A formatted number in the form "Re(c) + Im(c)i".
     */
    public String format(Complex c) {
        return format(c, new StringBuffer(), new FieldPosition(0)).toString();
    }
View Full Code Here

     *
     * @param c Double object to format.
     * @return A formatted number.
     */
    public String format(Double c) {
        return format(new Complex(c, 0), new StringBuffer(), new FieldPosition(0)).toString();
    }
View Full Code Here

     * Formats a {@link Vector} object to produce a string.
     * @param vector the object to format.
     * @return a formatted string.
     */
    public String format(Vector<S> vector) {
        return format(vector, new StringBuffer(), new FieldPosition(0)).toString();
    }
View Full Code Here

     *
     * @param v RealVector object to format.
     * @return a formatted vector.
     */
    public String format(RealVector v) {
        return format(v, new StringBuffer(), new FieldPosition(0)).toString();
    }
View Full Code Here

     *
     * @param m RealMatrix object to format.
     * @return a formatted matrix.
     */
    public String format(RealMatrix m) {
        return format(m, new StringBuffer(), new FieldPosition(0)).toString();
    }
View Full Code Here

  @Override
  public synchronized String toString() {
    StringBuilder s = new StringBuilder();
    s.append("HourlyStats: Report for hour beginning with UTC ");
    s.append(utcDateTime.format(beginTime, new StringBuffer(), new FieldPosition(0))).append("\n");
    s.append("HourlyStats: Node uptime (ms):\t").append(node.getUptime()).append("\n");
    s.append("HourlyStats: build:\t").append(Version.buildNumber()).append("\n");
    s.append("HourlyStats: CompleteHour: ").append(completeHour);
    s.append("\tFinished: ").append(finishedReporting).append("\n");
View Full Code Here

   * @generated
   */
  public String getPrintString(IAdaptable adapter, int flags) {
    EObject element = (EObject) adapter.getAdapter(EObject.class);
    return getViewProcessor().format(getValues(element),
        new StringBuffer(), new FieldPosition(0)).toString();
  }
View Full Code Here

   * @generated
   */
  public String getEditString(IAdaptable adapter, int flags) {
    EObject element = (EObject) adapter.getAdapter(EObject.class);
    return getEditorProcessor().format(getValues(element),
        new StringBuffer(), new FieldPosition(0)).toString();
  }
View Full Code Here

   * This method is only used when formatting the date in a
   * message that's being appended to a folder.
   */
  StringBuffer sb = new StringBuffer();
  synchronized (df) {
      df.format(d, sb, new FieldPosition(0));
  }

  // compute timezone offset string
  // XXX - Yes, I know this is deprecated
  int rawOffsetInMins = -d.getTimezoneOffset();
View Full Code Here

TOP

Related Classes of java.text.FieldPosition

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.