public Map makeEmptyMap() { try { return new BeanMap(new NullBean()); } catch (IntrospectionException e) { throw new RuntimeException(e); } }
private String checkKey(final Object pKey) { if (pKey == null) { throw new IllegalArgumentException("key == null"); } // NB - the cast forces CCE if key is the wrong type. final String name = (String) pKey; if (!containsKey(name)) { throw new IllegalArgumentException("Bad key: " + pKey); } return name; }
private Object readResolve() throws IntrospectionException { // Initialize the property descriptors descriptors = initDescriptors(bean); return this; }
public Object remove(final Object pKey) { return super.remove(checkKey(pKey)); }
public BeanMap(Object pBean) throws IntrospectionException { if (pBean == null) { throw new IllegalArgumentException("bean == null"); } bean = pBean; descriptors = initDescriptors(pBean); }
public Object remove(final Object pKey) { return super.remove(checkKey(pKey)); }
private Object readResolve() throws IntrospectionException { // Initialize the property descriptors descriptors = initDescriptors(bean); return this; }
public Map makeFullMap() { try { return new BeanMap(new MyBean()); } catch (IntrospectionException e) { throw new RuntimeException(e); } }
private String checkKey(final Object pKey) { if (pKey == null) { throw new IllegalArgumentException("key == null"); } // NB - the cast forces CCE if key is the wrong type. final String name = (String) pKey; if (!containsKey(name)) { throw new IllegalArgumentException("Bad key: " + pKey); } return name; }
public Object remove(final Object pKey) { return super.remove(checkKey(pKey)); }
private Object readResolve() throws IntrospectionException { // Initialize the property descriptors descriptors = initDescriptors(bean); return this; }
public Map makeEmptyMap() { try { return new BeanMap(new NullBean()); } catch (IntrospectionException e) { throw new RuntimeException(e); } }
private String checkKey(final Object pKey) { if (pKey == null) { throw new IllegalArgumentException("key == null"); } // NB - the cast forces CCE if key is the wrong type. final String name = (String) pKey; if (!containsKey(name)) { throw new IllegalArgumentException("Bad key: " + pKey); } return name; }
public Object remove(final Object pKey) { return super.remove(checkKey(pKey)); }
private Object readResolve() throws IntrospectionException { // Initialize the property descriptors mDescriptors = initDescriptors(mBean); return this; }
public Map makeFullMap() { try { return new BeanMap(new MyBean()); } catch (IntrospectionException e) { throw new RuntimeException(e); } }