- java.lang.Object
-
- io.netty5.handler.codec.CharSequenceValueConverter
-
- All Implemented Interfaces:
ValueConverter<CharSequence>
public class CharSequenceValueConverter extends Object implements ValueConverter<CharSequence>
Converts to/from native types, generalObject
, andCharSequence
s.
-
-
Field Summary
Fields Modifier and Type Field Description static CharSequenceValueConverter
INSTANCE
-
Constructor Summary
Constructors Constructor Description CharSequenceValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequence
convertBoolean(boolean value)
CharSequence
convertByte(byte value)
CharSequence
convertChar(char value)
CharSequence
convertDouble(double value)
CharSequence
convertFloat(float value)
CharSequence
convertInt(int value)
CharSequence
convertLong(long value)
CharSequence
convertObject(Object value)
CharSequence
convertShort(short value)
CharSequence
convertTimeMillis(long value)
boolean
convertToBoolean(CharSequence value)
byte
convertToByte(CharSequence value)
char
convertToChar(CharSequence value)
double
convertToDouble(CharSequence value)
float
convertToFloat(CharSequence value)
int
convertToInt(CharSequence value)
long
convertToLong(CharSequence value)
short
convertToShort(CharSequence value)
long
convertToTimeMillis(CharSequence value)
-
-
-
Field Detail
-
INSTANCE
public static final CharSequenceValueConverter INSTANCE
-
-
Method Detail
-
convertObject
public CharSequence convertObject(Object value)
- Specified by:
convertObject
in interfaceValueConverter<CharSequence>
-
convertInt
public CharSequence convertInt(int value)
- Specified by:
convertInt
in interfaceValueConverter<CharSequence>
-
convertLong
public CharSequence convertLong(long value)
- Specified by:
convertLong
in interfaceValueConverter<CharSequence>
-
convertDouble
public CharSequence convertDouble(double value)
- Specified by:
convertDouble
in interfaceValueConverter<CharSequence>
-
convertChar
public CharSequence convertChar(char value)
- Specified by:
convertChar
in interfaceValueConverter<CharSequence>
-
convertBoolean
public CharSequence convertBoolean(boolean value)
- Specified by:
convertBoolean
in interfaceValueConverter<CharSequence>
-
convertFloat
public CharSequence convertFloat(float value)
- Specified by:
convertFloat
in interfaceValueConverter<CharSequence>
-
convertToBoolean
public boolean convertToBoolean(CharSequence value)
- Specified by:
convertToBoolean
in interfaceValueConverter<CharSequence>
-
convertByte
public CharSequence convertByte(byte value)
- Specified by:
convertByte
in interfaceValueConverter<CharSequence>
-
convertToByte
public byte convertToByte(CharSequence value)
- Specified by:
convertToByte
in interfaceValueConverter<CharSequence>
-
convertToChar
public char convertToChar(CharSequence value)
- Specified by:
convertToChar
in interfaceValueConverter<CharSequence>
-
convertShort
public CharSequence convertShort(short value)
- Specified by:
convertShort
in interfaceValueConverter<CharSequence>
-
convertToShort
public short convertToShort(CharSequence value)
- Specified by:
convertToShort
in interfaceValueConverter<CharSequence>
-
convertToInt
public int convertToInt(CharSequence value)
- Specified by:
convertToInt
in interfaceValueConverter<CharSequence>
-
convertToLong
public long convertToLong(CharSequence value)
- Specified by:
convertToLong
in interfaceValueConverter<CharSequence>
-
convertTimeMillis
public CharSequence convertTimeMillis(long value)
- Specified by:
convertTimeMillis
in interfaceValueConverter<CharSequence>
-
convertToTimeMillis
public long convertToTimeMillis(CharSequence value)
- Specified by:
convertToTimeMillis
in interfaceValueConverter<CharSequence>
-
convertToFloat
public float convertToFloat(CharSequence value)
- Specified by:
convertToFloat
in interfaceValueConverter<CharSequence>
-
convertToDouble
public double convertToDouble(CharSequence value)
- Specified by:
convertToDouble
in interfaceValueConverter<CharSequence>
-
-