Top Description Fields Constructors Methods
org.joda.convert

pack-priv final Class OptionalIntStringConverter

extends Object
implements TypedStringConverter<Object>
Class Inheritance
All Implemented Interfaces
org.joda.convert.TypedStringConverter, org.joda.convert.TypedFromStringConverter, org.joda.convert.FromStringConverter, org.joda.convert.StringConverter, org.joda.convert.ToStringConverter
Imports
java.lang.reflect.Method

Parse the string format of OptionalInt from Java 8.

This is loaded by reflection only when using Java 8.

Field Summary

Modifier and TypeField and Description
private static final Object
private static final Method
private static final Method
private static final Method
private static final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
convertFromString(Class<? extends Object>
the class to convert to, not null
cls
,
String
the string to convert, not null
str
)

Implements org.joda.convert.FromStringConverter.convertFromString.

Converts the specified object from a String.
public String
convertToString(Object
the object to convert, not null
object
)

Implements org.joda.convert.ToStringConverter.convertToString.

Converts the specified object to a String.
public Class<?>
getEffectiveType()

Implements org.joda.convert.TypedStringConverter.getEffectiveType.

Gets the effective type that the converter works on.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
private static final Object EMPTY
METHOD_GETback to summary
private static final Method METHOD_GET
METHOD_IS_PRESENTback to summary
private static final Method METHOD_IS_PRESENT
METHOD_OFback to summary
private static final Method METHOD_OF
TYPEback to summary
private static final Class<?> TYPE

Constructor Detail

OptionalIntStringConverterback to summary
pack-priv OptionalIntStringConverter()

Method Detail

convertFromStringback to summary
public Object convertFromString(Class<? extends Object> cls, String str)

Implements org.joda.convert.FromStringConverter.convertFromString.

Doc from org.joda.convert.FromStringConverter.convertFromString.

Converts the specified object from a String.

Parameters
cls:Class<? extends Object>

the class to convert to, not null

str:String

the string to convert, not null

Returns:Object

the converted object, may be null but generally not

Annotations
@Override
convertToStringback to summary
public String convertToString(Object object)

Implements org.joda.convert.ToStringConverter.convertToString.

Doc from org.joda.convert.ToStringConverter.convertToString.

Converts the specified object to a String.

Parameters
object:Object

the object to convert, not null

Returns:String

the converted string, may be null but generally not

Annotations
@Override
getEffectiveTypeback to summary
public Class<?> getEffectiveType()

Implements org.joda.convert.TypedStringConverter.getEffectiveType.

Doc from org.joda.convert.TypedStringConverter.getEffectiveType.

Gets the effective type that the converter works on.

For example, if a class declares the FromString and ToString then the effective type of the converter is that class. If a subclass is queried for a converter, then the effective type is that of the superclass.

Returns:Class<?>

the effective type

Annotations
@Override