public class Converts extends Object
Modifier and Type | Method and Description |
---|---|
static <T,R> Conversion<T,R> |
to(Class<R> targetClass) |
static <T,R> R |
to(T t,
Class<R> targetClass) |
static <T,R> R |
to(T t,
Conversion<T,R> f)
转化
|
static boolean |
toBoolean(Boolean b) |
static boolean |
toBoolean(byte b) |
static boolean |
toBoolean(char b) |
static boolean |
toBoolean(double b) |
static boolean |
toBoolean(float b) |
static boolean |
toBoolean(int b) |
static boolean |
toBoolean(long b) |
static boolean |
toBoolean(Object o) |
static boolean |
toBoolean(short b) |
static boolean |
toBoolean(String b) |
static Boolean[] |
toBooleans(boolean[] bs) |
static boolean[] |
toBooleans(Boolean[] bs) |
static boolean[] |
toBooleans(byte[] bs) |
static boolean[] |
toBooleans(Byte[] bs) |
static boolean[] |
toBooleans(char[] bs) |
static boolean[] |
toBooleans(Character[] bs) |
static boolean[] |
toBooleans(double[] bs) |
static boolean[] |
toBooleans(Double[] bs) |
static boolean[] |
toBooleans(float[] bs) |
static boolean[] |
toBooleans(Float[] bs) |
static boolean[] |
toBooleans(int[] bs) |
static boolean[] |
toBooleans(Integer[] bs) |
static boolean[] |
toBooleans(long[] bs) |
static boolean[] |
toBooleans(Long[] bs) |
static boolean[] |
toBooleans(Object o) |
static boolean[] |
toBooleans(short[] bs) |
static boolean[] |
toBooleans(Short[] bs) |
static boolean[] |
toBooleans(String[] bs) |
static byte |
toByte(boolean b) |
static byte |
toByte(Byte b) |
static byte |
toByte(char b) |
static byte |
toByte(double b) |
static byte |
toByte(float b) |
static byte |
toByte(int b) |
static byte |
toByte(long b) |
static byte |
toByte(Object o) |
static byte |
toByte(short b) |
static byte |
toByte(String b) |
static byte[] |
toBytes(boolean[] bs) |
static byte[] |
toBytes(Boolean[] bs) |
static Byte[] |
toBytes(byte[] bs) |
static byte[] |
toBytes(Byte[] bs) |
static byte[] |
toBytes(char[] bs) |
static byte[] |
toBytes(Character[] bs) |
static byte[] |
toBytes(double[] bs) |
static byte[] |
toBytes(Double[] bs) |
static byte[] |
toBytes(float[] bs) |
static byte[] |
toBytes(Float[] bs) |
static byte[] |
toBytes(int i) |
static byte[] |
toBytes(int[] bs) |
static byte[] |
toBytes(Integer[] bs) |
static byte[] |
toBytes(long n) |
static byte[] |
toBytes(long[] bs) |
static byte[] |
toBytes(Long[] bs) |
static byte[] |
toBytes(Object o) |
static byte[] |
toBytes(short b) |
static byte[] |
toBytes(short[] bs) |
static byte[] |
toBytes(Short[] bs) |
static byte[] |
toBytes(String bs) |
static byte[] |
toBytes(String[] bs) |
static char |
toChar(boolean b) |
static char |
toChar(byte b) |
static char |
toChar(Character b) |
static char |
toChar(double b) |
static char |
toChar(float b) |
static char |
toChar(int b) |
static char |
toChar(long b) |
static char |
toChar(Object o) |
static char |
toChar(short b) |
static char |
toChar(String b) |
static char[] |
toChars(boolean[] bs) |
static char[] |
toChars(Boolean[] bs) |
static char[] |
toChars(byte[] bs) |
static char[] |
toChars(Byte[] bs) |
static Character[] |
toChars(char[] bs) |
static char[] |
toChars(Character[] bs) |
static char[] |
toChars(double[] bs) |
static char[] |
toChars(Double[] bs) |
static char[] |
toChars(float[] bs) |
static char[] |
toChars(Float[] bs) |
static char[] |
toChars(int[] bs) |
static char[] |
toChars(Integer[] bs) |
static char[] |
toChars(long[] bs) |
static char[] |
toChars(Long[] bs) |
static char[] |
toChars(Object o) |
static char[] |
toChars(short[] bs) |
static char[] |
toChars(Short[] bs) |
static char[] |
toChars(String bs) |
static char[] |
toChars(String[] bs) |
static Date |
toDate(Object o) |
static double |
toDouble(boolean b) |
static double |
toDouble(byte b) |
static double |
toDouble(char b) |
static double |
toDouble(Double b) |
static double |
toDouble(float b) |
static double |
toDouble(int b) |
static double |
toDouble(long b) |
static double |
toDouble(Object o) |
static double |
toDouble(short b) |
static double |
toDouble(String b) |
static double[] |
toDoubles(boolean[] bs) |
static double[] |
toDoubles(Boolean[] bs) |
static double[] |
toDoubles(byte[] bs) |
static double[] |
toDoubles(Byte[] bs) |
static double[] |
toDoubles(char[] bs) |
static double[] |
toDoubles(Character[] bs) |
static Double[] |
toDoubles(double[] bs) |
static double[] |
toDoubles(Double[] bs) |
static double[] |
toDoubles(float[] bs) |
static double[] |
toDoubles(Float[] bs) |
static double[] |
toDoubles(int[] bs) |
static double[] |
toDoubles(Integer[] bs) |
static double[] |
toDoubles(long[] bs) |
static double[] |
toDoubles(Long[] bs) |
static double[] |
toDoubles(Object o) |
static double[] |
toDoubles(short[] bs) |
static double[] |
toDoubles(Short[] bs) |
static double[] |
toDoubles(String[] bs) |
static float |
toFloat(boolean b) |
static float |
toFloat(byte b) |
static float |
toFloat(char b) |
static float |
toFloat(double b) |
static float |
toFloat(Float b) |
static float |
toFloat(int b) |
static float |
toFloat(long b) |
static float |
toFloat(Object o) |
static float |
toFloat(short b) |
static float |
toFloat(String b) |
static float[] |
toFloats(boolean[] bs) |
static float[] |
toFloats(Boolean[] bs) |
static float[] |
toFloats(byte[] bs) |
static float[] |
toFloats(Byte[] bs) |
static float[] |
toFloats(char[] bs) |
static float[] |
toFloats(Character[] bs) |
static float[] |
toFloats(double[] bs) |
static float[] |
toFloats(Double[] bs) |
static Float[] |
toFloats(float[] bs) |
static float[] |
toFloats(Float[] bs) |
static float[] |
toFloats(int[] bs) |
static float[] |
toFloats(Integer[] bs) |
static float[] |
toFloats(long[] bs) |
static float[] |
toFloats(Long[] bs) |
static float[] |
toFloats(Object o) |
static float[] |
toFloats(short[] bs) |
static float[] |
toFloats(Short[] bs) |
static float[] |
toFloats(String[] bs) |
static int |
toInt(boolean b) |
static int |
toInt(byte b) |
static int |
toInt(byte[] bs) |
static int |
toInt(char b) |
static int |
toInt(double b) |
static int |
toInt(float b) |
static int |
toInt(Integer b) |
static int |
toInt(long b) |
static int |
toInt(Object o) |
static int |
toInt(short b) |
static int |
toInt(String b) |
static int[] |
toInts(boolean[] bs) |
static int[] |
toInts(Boolean[] bs) |
static int[] |
toInts(byte[] bs) |
static int[] |
toInts(Byte[] bs) |
static int[] |
toInts(char[] bs) |
static int[] |
toInts(Character[] bs) |
static int[] |
toInts(double[] bs) |
static int[] |
toInts(Double[] bs) |
static int[] |
toInts(float[] bs) |
static int[] |
toInts(Float[] bs) |
static Integer[] |
toInts(int[] bs) |
static int[] |
toInts(Integer[] bs) |
static int[] |
toInts(long[] bs) |
static int[] |
toInts(Long[] bs) |
static int[] |
toInts(Object o) |
static int[] |
toInts(short[] bs) |
static int[] |
toInts(Short[] bs) |
static int[] |
toInts(String[] bs) |
static <T,R> List<R> |
toList(List<T> list,
Class<R> targetClass) |
static LocalDate |
toLocalDate(Object o) |
static LocalDateTime |
toLocalDateTime(Object o) |
static long |
toLong(boolean b) |
static long |
toLong(byte b) |
static long |
toLong(byte[] b) |
static long |
toLong(char b) |
static long |
toLong(double b) |
static long |
toLong(float b) |
static long |
toLong(int b) |
static long |
toLong(Long b) |
static long |
toLong(Object o) |
static long |
toLong(short b) |
static long |
toLong(String b) |
static long[] |
toLongs(boolean[] bs) |
static long[] |
toLongs(Boolean[] bs) |
static long[] |
toLongs(byte[] bs) |
static long[] |
toLongs(Byte[] bs) |
static long[] |
toLongs(char[] bs) |
static long[] |
toLongs(Character[] bs) |
static long[] |
toLongs(double[] bs) |
static long[] |
toLongs(Double[] bs) |
static long[] |
toLongs(float[] bs) |
static long[] |
toLongs(Float[] bs) |
static long[] |
toLongs(int[] bs) |
static long[] |
toLongs(Integer[] bs) |
static Long[] |
toLongs(long[] bs) |
static long[] |
toLongs(Long[] bs) |
static long[] |
toLongs(Object o) |
static long[] |
toLongs(short[] bs) |
static long[] |
toLongs(Short[] bs) |
static long[] |
toLongs(String[] bs) |
static short |
toShort(boolean b) |
static short |
toShort(byte b) |
static short |
toShort(byte[] b) |
static short |
toShort(char b) |
static short |
toShort(double b) |
static short |
toShort(float b) |
static short |
toShort(int b) |
static short |
toShort(long b) |
static short |
toShort(Object o) |
static short |
toShort(Short b) |
static short |
toShort(String b) |
static short[] |
toShorts(boolean[] bs) |
static short[] |
toShorts(Boolean[] bs) |
static short[] |
toShorts(byte[] bs) |
static short[] |
toShorts(Byte[] bs) |
static short[] |
toShorts(char[] bs) |
static short[] |
toShorts(Character[] bs) |
static short[] |
toShorts(double[] bs) |
static short[] |
toShorts(Double[] bs) |
static short[] |
toShorts(float[] bs) |
static short[] |
toShorts(Float[] bs) |
static short[] |
toShorts(int[] bs) |
static short[] |
toShorts(Integer[] bs) |
static short[] |
toShorts(long[] bs) |
static short[] |
toShorts(Long[] bs) |
static short[] |
toShorts(Object o) |
static Short[] |
toShorts(short[] bs) |
static short[] |
toShorts(Short[] bs) |
static short[] |
toShorts(String[] bs) |
static String |
toString(Object o) |
static String[] |
toStrings(boolean[] bs) |
static String[] |
toStrings(Boolean[] bs) |
static String[] |
toStrings(byte[] bs) |
static String[] |
toStrings(Byte[] bs) |
static String[] |
toStrings(char[] bs) |
static String[] |
toStrings(Character[] bs) |
static String[] |
toStrings(double[] bs) |
static String[] |
toStrings(Double[] bs) |
static String[] |
toStrings(float[] bs) |
static String[] |
toStrings(Float[] bs) |
static String[] |
toStrings(int[] bs) |
static String[] |
toStrings(Integer[] bs) |
static String[] |
toStrings(long[] bs) |
static String[] |
toStrings(Long[] bs) |
static String[] |
toStrings(Object o) |
static String[] |
toStrings(short[] bs) |
static String[] |
toStrings(Short[] bs) |
public static <T,R> R to(T t, Class<R> targetClass)
public static <T,R> Conversion<T,R> to(Class<R> targetClass)
public static <T,R> R to(T t, Conversion<T,R> f)
T
- ignoreR
- ignoret
- 原始值f
- 函数public static LocalDateTime toLocalDateTime(Object o)
public static byte toByte(Byte b)
public static byte toByte(short b)
public static byte toByte(int b)
public static byte toByte(long b)
public static byte toByte(float b)
public static byte toByte(double b)
public static byte toByte(boolean b)
public static byte toByte(char b)
public static byte toByte(String b)
public static byte toByte(Object o)
public static short toShort(byte[] b)
public static short toShort(byte b)
public static short toShort(Short b)
public static short toShort(int b)
public static short toShort(long b)
public static short toShort(float b)
public static short toShort(double b)
public static short toShort(boolean b)
public static short toShort(char b)
public static short toShort(String b)
public static short toShort(Object o)
public static int toInt(byte[] bs)
public static int toInt(byte b)
public static int toInt(short b)
public static int toInt(Integer b)
public static int toInt(long b)
public static int toInt(float b)
public static int toInt(double b)
public static int toInt(boolean b)
public static int toInt(char b)
public static int toInt(String b)
public static int toInt(Object o)
public static long toLong(byte[] b)
public static long toLong(byte b)
public static long toLong(short b)
public static long toLong(int b)
public static long toLong(Long b)
public static long toLong(float b)
public static long toLong(double b)
public static long toLong(boolean b)
public static long toLong(char b)
public static long toLong(String b)
public static long toLong(Object o)
public static float toFloat(byte b)
public static float toFloat(short b)
public static float toFloat(int b)
public static float toFloat(long b)
public static float toFloat(Float b)
public static float toFloat(double b)
public static float toFloat(boolean b)
public static float toFloat(char b)
public static float toFloat(String b)
public static float toFloat(Object o)
public static double toDouble(byte b)
public static double toDouble(short b)
public static double toDouble(int b)
public static double toDouble(long b)
public static double toDouble(float b)
public static double toDouble(Double b)
public static double toDouble(boolean b)
public static double toDouble(char b)
public static double toDouble(String b)
public static double toDouble(Object o)
public static boolean toBoolean(byte b)
public static boolean toBoolean(short b)
public static boolean toBoolean(int b)
public static boolean toBoolean(long b)
public static boolean toBoolean(float b)
public static boolean toBoolean(double b)
public static boolean toBoolean(Boolean b)
public static boolean toBoolean(char b)
public static boolean toBoolean(String b)
public static boolean toBoolean(Object o)
public static char toChar(byte b)
public static char toChar(short b)
public static char toChar(int b)
public static char toChar(long b)
public static char toChar(float b)
public static char toChar(double b)
public static char toChar(boolean b)
public static char toChar(Character b)
public static char toChar(String b)
public static char toChar(Object o)
public static byte[] toBytes(int i)
public static byte[] toBytes(short b)
public static byte[] toBytes(long n)
public static byte[] toBytes(Byte[] bs)
public static Byte[] toBytes(byte[] bs)
public static byte[] toBytes(Short[] bs)
public static byte[] toBytes(short[] bs)
public static byte[] toBytes(Integer[] bs)
public static byte[] toBytes(int[] bs)
public static byte[] toBytes(Long[] bs)
public static byte[] toBytes(long[] bs)
public static byte[] toBytes(Float[] bs)
public static byte[] toBytes(float[] bs)
public static byte[] toBytes(Double[] bs)
public static byte[] toBytes(double[] bs)
public static byte[] toBytes(Boolean[] bs)
public static byte[] toBytes(boolean[] bs)
public static byte[] toBytes(Character[] bs)
public static byte[] toBytes(char[] bs)
public static byte[] toBytes(String bs)
public static byte[] toBytes(String[] bs)
public static byte[] toBytes(Object o)
public static short[] toShorts(Byte[] bs)
public static short[] toShorts(byte[] bs)
public static short[] toShorts(Short[] bs)
public static Short[] toShorts(short[] bs)
public static short[] toShorts(Integer[] bs)
public static short[] toShorts(int[] bs)
public static short[] toShorts(Long[] bs)
public static short[] toShorts(long[] bs)
public static short[] toShorts(Float[] bs)
public static short[] toShorts(float[] bs)
public static short[] toShorts(Double[] bs)
public static short[] toShorts(double[] bs)
public static short[] toShorts(Boolean[] bs)
public static short[] toShorts(boolean[] bs)
public static short[] toShorts(Character[] bs)
public static short[] toShorts(char[] bs)
public static short[] toShorts(String[] bs)
public static short[] toShorts(Object o)
public static int[] toInts(Byte[] bs)
public static int[] toInts(byte[] bs)
public static int[] toInts(Short[] bs)
public static int[] toInts(short[] bs)
public static int[] toInts(Integer[] bs)
public static Integer[] toInts(int[] bs)
public static int[] toInts(Long[] bs)
public static int[] toInts(long[] bs)
public static int[] toInts(Float[] bs)
public static int[] toInts(float[] bs)
public static int[] toInts(Double[] bs)
public static int[] toInts(double[] bs)
public static int[] toInts(Boolean[] bs)
public static int[] toInts(boolean[] bs)
public static int[] toInts(Character[] bs)
public static int[] toInts(char[] bs)
public static int[] toInts(String[] bs)
public static int[] toInts(Object o)
public static long[] toLongs(Byte[] bs)
public static long[] toLongs(byte[] bs)
public static long[] toLongs(Short[] bs)
public static long[] toLongs(short[] bs)
public static long[] toLongs(Integer[] bs)
public static long[] toLongs(int[] bs)
public static long[] toLongs(Long[] bs)
public static Long[] toLongs(long[] bs)
public static long[] toLongs(Float[] bs)
public static long[] toLongs(float[] bs)
public static long[] toLongs(Double[] bs)
public static long[] toLongs(double[] bs)
public static long[] toLongs(Boolean[] bs)
public static long[] toLongs(boolean[] bs)
public static long[] toLongs(Character[] bs)
public static long[] toLongs(char[] bs)
public static long[] toLongs(String[] bs)
public static long[] toLongs(Object o)
public static float[] toFloats(Byte[] bs)
public static float[] toFloats(byte[] bs)
public static float[] toFloats(Short[] bs)
public static float[] toFloats(short[] bs)
public static float[] toFloats(Integer[] bs)
public static float[] toFloats(int[] bs)
public static float[] toFloats(Long[] bs)
public static float[] toFloats(long[] bs)
public static float[] toFloats(Float[] bs)
public static Float[] toFloats(float[] bs)
public static float[] toFloats(Double[] bs)
public static float[] toFloats(double[] bs)
public static float[] toFloats(Boolean[] bs)
public static float[] toFloats(boolean[] bs)
public static float[] toFloats(Character[] bs)
public static float[] toFloats(char[] bs)
public static float[] toFloats(String[] bs)
public static float[] toFloats(Object o)
public static double[] toDoubles(Byte[] bs)
public static double[] toDoubles(byte[] bs)
public static double[] toDoubles(Short[] bs)
public static double[] toDoubles(short[] bs)
public static double[] toDoubles(Integer[] bs)
public static double[] toDoubles(int[] bs)
public static double[] toDoubles(Long[] bs)
public static double[] toDoubles(long[] bs)
public static double[] toDoubles(Float[] bs)
public static double[] toDoubles(float[] bs)
public static double[] toDoubles(Double[] bs)
public static Double[] toDoubles(double[] bs)
public static double[] toDoubles(Boolean[] bs)
public static double[] toDoubles(boolean[] bs)
public static double[] toDoubles(Character[] bs)
public static double[] toDoubles(char[] bs)
public static double[] toDoubles(String[] bs)
public static double[] toDoubles(Object o)
public static boolean[] toBooleans(Byte[] bs)
public static boolean[] toBooleans(byte[] bs)
public static boolean[] toBooleans(Short[] bs)
public static boolean[] toBooleans(short[] bs)
public static boolean[] toBooleans(Integer[] bs)
public static boolean[] toBooleans(int[] bs)
public static boolean[] toBooleans(Long[] bs)
public static boolean[] toBooleans(long[] bs)
public static boolean[] toBooleans(Float[] bs)
public static boolean[] toBooleans(float[] bs)
public static boolean[] toBooleans(Double[] bs)
public static boolean[] toBooleans(double[] bs)
public static boolean[] toBooleans(Boolean[] bs)
public static Boolean[] toBooleans(boolean[] bs)
public static boolean[] toBooleans(Character[] bs)
public static boolean[] toBooleans(char[] bs)
public static boolean[] toBooleans(String[] bs)
public static boolean[] toBooleans(Object o)
public static char[] toChars(Byte[] bs)
public static char[] toChars(byte[] bs)
public static char[] toChars(Short[] bs)
public static char[] toChars(short[] bs)
public static char[] toChars(Integer[] bs)
public static char[] toChars(int[] bs)
public static char[] toChars(Long[] bs)
public static char[] toChars(long[] bs)
public static char[] toChars(Float[] bs)
public static char[] toChars(float[] bs)
public static char[] toChars(Double[] bs)
public static char[] toChars(double[] bs)
public static char[] toChars(Boolean[] bs)
public static char[] toChars(boolean[] bs)
public static char[] toChars(Character[] bs)
public static Character[] toChars(char[] bs)
public static char[] toChars(String bs)
public static char[] toChars(String[] bs)
public static char[] toChars(Object o)
public static String[] toStrings(byte[] bs)
public static String[] toStrings(short[] bs)
public static String[] toStrings(int[] bs)
public static String[] toStrings(long[] bs)
public static String[] toStrings(float[] bs)
public static String[] toStrings(double[] bs)
public static String[] toStrings(boolean[] bs)
public static String[] toStrings(char[] bs)
Copyright © 2024. All rights reserved.