List of usage examples for java.lang String valueOf
public static String valueOf(double d)
From source file:Main.java
public static String generateReplyID() { String str = String.valueOf(System.currentTimeMillis()); return "RP" + str + String.valueOf((int) (1000.0D + 9000.0D * Math.random())); }
From source file:Main.java
public static String date2String(int m) { return m < 10 ? String.valueOf("0" + m) : String.valueOf(m); }
From source file:Main.java
public static String kelvinToCelcius(double kelvin) { return String.valueOf(Math.round(kelvin - 273.15)); }
From source file:Main.java
public static String getTimeLapse(String time) { return String.valueOf((Integer.valueOf(time.split(":")[0]).intValue() + 10) % 24); }
From source file:Main.java
public static String MemoryToString(long paramLong) { return String.valueOf(paramLong / 1024L / 1024L) + "M"; }
From source file:Main.java
private static String getFileRoundSize(long paramLong) { return String.valueOf(Math.round(10.0F * ((float) paramLong / 1024.0F)) / 10.0F); }
From source file:Main.java
public static String getChannelName(long threadId) { return "thread_" + String.valueOf(threadId); }
From source file:Main.java
public static boolean isEmpty(Object string) { return string == null || String.valueOf(string).length() < 1; }
From source file:Main.java
public static String MemoryToString(long l) { return (new StringBuilder(String.valueOf(String.valueOf(l / 1024L / 1024L)))).append("M").toString(); }
From source file:Main.java
public static String getInviteNum(int uid) { String str = String.valueOf(uid); StringBuffer sb = new StringBuffer(); for (int i = 0; i < 6 - str.length(); i++) { sb.append("0"); }//from w ww . ja v a 2 s. co m sb.append(str); return sb.toString(); }