public class CharSequenceValueConverter extends java.lang.Object implements ValueConverter<java.lang.CharSequence>
Object
和
CharSequence
。
Modifier and Type | Field and Description |
---|---|
static CharSequenceValueConverter |
INSTANCE |
Constructor and Description |
---|
CharSequenceValueConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
convertBoolean(boolean value) |
java.lang.CharSequence |
convertByte(byte value) |
java.lang.CharSequence |
convertChar(char value) |
java.lang.CharSequence |
convertDouble(double value) |
java.lang.CharSequence |
convertFloat(float value) |
java.lang.CharSequence |
convertInt(int value) |
java.lang.CharSequence |
convertLong(long value) |
java.lang.CharSequence |
convertObject(java.lang.Object value) |
java.lang.CharSequence |
convertShort(short value) |
java.lang.CharSequence |
convertTimeMillis(long value) |
boolean |
convertToBoolean(java.lang.CharSequence value) |
byte |
convertToByte(java.lang.CharSequence value) |
char |
convertToChar(java.lang.CharSequence value) |
double |
convertToDouble(java.lang.CharSequence value) |
float |
convertToFloat(java.lang.CharSequence value) |
int |
convertToInt(java.lang.CharSequence value) |
long |
convertToLong(java.lang.CharSequence value) |
short |
convertToShort(java.lang.CharSequence value) |
long |
convertToTimeMillis(java.lang.CharSequence value) |
public static final CharSequenceValueConverter INSTANCE
public java.lang.CharSequence convertObject(java.lang.Object value)
convertObject
在界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertInt(int value)
convertInt
,界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertLong(long value)
convertLong
在界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertDouble(double value)
convertDouble
在界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertChar(char value)
convertChar
接口
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertBoolean(boolean value)
convertBoolean
在界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertFloat(float value)
convertFloat
在界面
ValueConverter<java.lang.CharSequence>
public boolean convertToBoolean(java.lang.CharSequence value)
convertToBoolean
,界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertByte(byte value)
convertByte
,界面
ValueConverter<java.lang.CharSequence>
public byte convertToByte(java.lang.CharSequence value)
convertToByte
在界面
ValueConverter<java.lang.CharSequence>
public char convertToChar(java.lang.CharSequence value)
convertToChar
接口
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertShort(short value)
convertShort
,界面
ValueConverter<java.lang.CharSequence>
public short convertToShort(java.lang.CharSequence value)
convertToShort
在界面
ValueConverter<java.lang.CharSequence>
public int convertToInt(java.lang.CharSequence value)
convertToInt
在界面
ValueConverter<java.lang.CharSequence>
public long convertToLong(java.lang.CharSequence value)
convertToLong
,界面
ValueConverter<java.lang.CharSequence>
public java.lang.CharSequence convertTimeMillis(long value)
convertTimeMillis
,界面
ValueConverter<java.lang.CharSequence>
public long convertToTimeMillis(java.lang.CharSequence value)
convertToTimeMillis
,界面
ValueConverter<java.lang.CharSequence>
public float convertToFloat(java.lang.CharSequence value)
convertToFloat
,界面
ValueConverter<java.lang.CharSequence>
public double convertToDouble(java.lang.CharSequence value)
convertToDouble
在界面
ValueConverter<java.lang.CharSequence>
Copyright © 2008–2018 The Netty Project. All rights reserved.