I'm dynamically instantiating an object through reflection, by matching fields names to like-named keys in a Map. One of the fields is a character array (char[]):
private char[] traceResponseStatus;
In the plinko iterator I have code for the types on the target class, eg.
Collection<Field> fields = EventUtil.getAllFields(MyClass.getClass()).values();
for (Field field : fields)
{
Object value = aMap.get(field.getName());
...
else if (Date.class.equals(fieldClass))
{
where the fieldClass
, for example, would be Date
class MyClass
{
private Date foo;
What's the expression to test if the fieldClass type is a char[]?