public String toString() { StringBuffer buf = new StringBuffer(); buf.append("BeanProperty{name="); buf.append(getName()); buf.append(", type="); buf.append(getType().getName()); Class[] covariantTypes = getCovariantTypes(); if (covariantTypes.length > 0) { buf.append(", covariantTypes="); buf.append(Arrays.toString(covariantTypes)); } buf.append(", "); int count = getIndexTypesCount(); for (int i=0; i<count; i++) { if (i > 0) { buf.append(", "); } buf.append("indexType["); buf.append(i); buf.append("]="); buf.append(getIndexType(0)); } buf.append('}'); return buf.toString(); }
void addIndexedWriteMethod(Method method) { Class indexType = method.getParameterTypes()[0]; int count = getIndexTypesCount(); int i; for (i=0; i<count; i++) { if (getIndexType(i) == indexType) { break; } } if (i >= count) { expandCapactity(); } if (mIndexedWriteMethods[i] == null) { mIndexedWriteMethods[i] = method; } }
void addIndexedReadMethod(Method method) { Class indexType = method.getParameterTypes()[0]; int count = getIndexTypesCount(); int i; for (i=0; i<count; i++) { if (getIndexType(i) == indexType) { break; } } if (i >= count) { expandCapactity(); } if (mIndexedReadMethods[i] == null) { mIndexedReadMethods[i] = method; } }
public String toString() { StringBuffer buf = new StringBuffer(); buf.append("BeanProperty{name="); buf.append(getName()); buf.append(", type="); buf.append(getType().getName()); Class[] covariantTypes = getCovariantTypes(); if (covariantTypes.length > 0) { buf.append(", covariantTypes="); buf.append(Arrays.toString(covariantTypes)); } buf.append(", "); int count = getIndexTypesCount(); for (int i=0; i<count; i++) { if (i > 0) { buf.append(", "); } buf.append("indexType["); buf.append(i); buf.append("]="); buf.append(getIndexType(0)); } buf.append('}'); return buf.toString(); }
void addIndexedReadMethod(Method method) { Class indexType = method.getParameterTypes()[0]; int count = getIndexTypesCount(); int i; for (i=0; i<count; i++) { if (getIndexType(i) == indexType) { break; } } if (i >= count) { expandCapactity(); } if (mIndexedReadMethods[i] == null) { mIndexedReadMethods[i] = method; } }
void addIndexedWriteMethod(Method method) { Class indexType = method.getParameterTypes()[0]; int count = getIndexTypesCount(); int i; for (i=0; i<count; i++) { if (getIndexType(i) == indexType) { break; } } if (i >= count) { expandCapactity(); } if (mIndexedWriteMethods[i] == null) { mIndexedWriteMethods[i] = method; } }