/** * This is used to extract the component type for the array class * this factory represents. This is used when an array is to be * instantiated. If the class provided to the factory is not an * array then this will throw an exception. * * @return this returns the component type for the array */ private Class getComponentType() throws Exception { Class expect = getType(); if(!expect.isArray()) { throw new InstantiationException("The %s not an array for %s", expect, type); } return expect.getComponentType(); } }
/** * This is used to extract the component type for the array class * this factory represents. This is used when an array is to be * instantiated. If the class provided to the factory is not an * array then this will throw an exception. * * @return this returns the component type for the array */ private Class getComponentType() throws Exception { Class expect = getType(); if(!expect.isArray()) { throw new InstantiationException("The %s not an array for %s", expect, type); } return expect.getComponentType(); } }
/** * This is used to extract the component type for the array class * this factory represents. This is used when an array is to be * instantiated. If the class provided to the factory is not an * array then this will throw an exception. * * @return this returns the component type for the array */ private Class getComponentType() throws Exception { Class expect = getType(); if(!expect.isArray()) { throw new InstantiationException("The %s not an array for %s", expect, type); } return expect.getComponentType(); } }