Java Number Value Of valueOf(int[] source)

Here you can find the source of valueOf(int[] source)

Description

Utility method to take a int[] containing codepoints and return a string representation with code units.

License

Open Source License

Declaration

public static String valueOf(int[] source) 

Method Source Code

//package com.java2s;
// License & terms of use: http://www.unicode.org/copyright.html#License

public class Main {
    /**//from  w w w .  j a v  a 2  s .co m
     * Utility method to take a int[] containing codepoints and return
     * a string representation with code units.
     */
    public static String valueOf(int[] source) {
        // TODO: Investigate why this method is not on UTF16 class
        StringBuilder result = new StringBuilder(source.length);
        for (int i = 0; i < source.length; i++) {
            result.appendCodePoint(source[i]);
        }
        return result.toString();
    }
}

Related

  1. valueOf(final Boolean value)
  2. valueOf(float f)
  3. valueOf(int i)
  4. valueOf(int i)
  5. valueOf(int number)
  6. valueOf(Integer value)
  7. valueOf(Integer value)
  8. valueOf(Short value)
  9. valueOf(T v)