T
- The format (class) of object contained within the array that this
ArrayFormatManager manages.public class ArrayFormatManager<T> extends java.lang.Object implements FormatManager<T[]>
Constructor and Description |
---|
ArrayFormatManager(FormatManager<T> underlying,
char separator)
Constructs a new ArrayFormatManager with the given underlying component
FormatManager and separator.
|
Modifier and Type | Method and Description |
---|---|
T[] |
convert(java.lang.String instructions)
Converts the instructions into an array of objects.
|
Indirect<T[]> |
convertIndirect(java.lang.String instructions)
Converts the instructions into an Indirect array of objects.
|
ObjectContainer<T[]> |
convertObjectContainer(java.lang.String instructions)
Converts the instructions into an ObjectContainer array of objects.
|
boolean |
equals(java.lang.Object o) |
FormatManager<?> |
getComponentManager()
Returns the FormatManager for the class of object within the array
managed by this ArrayFormatManager.
|
java.lang.String |
getIdentifierType()
Returns the identifier type for this ArrayFormatManager.
|
java.lang.Class<T[]> |
getManagedClass()
Returns the class for this ArrayFormatManager (will be an Array.class
with the appropriate component class).
|
int |
hashCode() |
java.lang.String |
unconvert(T[] array)
Unconverts the given array using this ArrayFormatManager.
|
public ArrayFormatManager(FormatManager<T> underlying, char separator)
underlying
- The FormatManager representing objects contained within the
arrayseparator
- The separator character used to parse instructions and
separate items that will be part of the arraypublic T[] convert(java.lang.String instructions)
convert
in interface FormatManager<T[]>
instructions
- The input String which should be converted into the
appropriate objectFormatManager.convert(java.lang.String)
public Indirect<T[]> convertIndirect(java.lang.String instructions)
convertIndirect
in interface FormatManager<T[]>
instructions
- The input String which should be converted into the
appropriate objectFormatManager.convertIndirect(java.lang.String)
public ObjectContainer<T[]> convertObjectContainer(java.lang.String instructions)
convertObjectContainer
in interface FormatManager<T[]>
instructions
- The String to be converted into an ObjectContainer which
contains zero or more objects of the type of object upon which
this FormatManager operatesFormatManager.convertObjectContainer(java.lang.String)
public FormatManager<?> getComponentManager()
getComponentManager
in interface FormatManager<T[]>
FormatManager.getComponentManager()
public java.lang.String getIdentifierType()
getIdentifierType
in interface FormatManager<T[]>
FormatManager.getIdentifierType()
public java.lang.Class<T[]> getManagedClass()
getManagedClass
in interface FormatManager<T[]>
FormatManager.getManagedClass()
public java.lang.String unconvert(T[] array)
unconvert
in interface FormatManager<T[]>
array
- The object to be converted into a human-readable serialized
formFormatManager.unconvert(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object