Class DateFactory<T extends Date>
java.lang.Object
org.simpleframework.xml.transform.DateFactory<T>
The
DateFactory
object is used to create instances
or subclasses of the Date
object. This will create
the instances of the date objects using a constructor that takes
a single long
parameter value.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Constructor
<T> This is used to create instances of the date object required. -
Constructor Summary
ConstructorsConstructorDescriptionDateFactory
(Class<T> type) Constructor for theDateFactory
object.DateFactory
(Class<T> type, Class... list) Constructor for theDateFactory
object. -
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(Object... list) This is used to create instances of the date using a delegate date.
-
Field Details
-
factory
This is used to create instances of the date object required.
-
-
Constructor Details
-
DateFactory
Constructor for theDateFactory
object. This is used to create instances of the specified type. All objects created by this instance must take a single long parameter.- Parameters:
type
- this is the date implementation to be created- Throws:
Exception
-
DateFactory
Constructor for theDateFactory
object. This is used to create instances of the specified type. All objects created by this instance must take the specified parameter.- Parameters:
type
- this is the date implementation to be createdlist
- is basically the list of accepted parameters- Throws:
Exception
-
-
Method Details
-
getInstance
This is used to create instances of the date using a delegate date. Along
parameter is extracted from the given date an used to instantiate a date of the required type.- Parameters:
list
- this is the type used to provide the long value- Returns:
- this returns an instance of the required date type
- Throws:
Exception
-