/** * @return the list of field names <br/> Only returns the complete * fields, the partial ones (only settable or gettable) will not be returned */ public List<String> getFieldNames() { return getFieldNames(null); }
/** * @return the list of field names <br/> Only returns the complete * fields, the partial ones (only settable or gettable) will not be returned */ public List<String> getFieldNames() { return getFieldNames(null); }
/** * Get the names of all fields in a class * @param cls any class * @return a list of the field names */ public <T> List<String> getFieldNames(Class<T> cls) { ClassFields<T> cf = analyzeClass(cls); return cf.getFieldNames(); }
/** * Get the names of all fields in a class * @param cls any class * @return a list of the field names */ public <T> List<String> getFieldNames(Class<T> cls) { ClassFields<T> cf = analyzeClass(cls); return cf.getFieldNames(); }
@Override public String toString() { return "(" + getStoredClass().getName() + "):mode="+fieldFindMode.name()+":" + getFieldNames(FieldsFilter.ALL); }
/** * @param filter (optional) indicates the fields to include in the count, can be null for defaults * @return the number of fields */ public int size(FieldsFilter filter) { int size; if (FieldsFilter.ALL.equals(filter)) { size = namesToProperties.size(); } else { size = getFieldNames(filter).size(); } return size; }
@Override public String toString() { return "(" + getStoredClass().getName() + "):mode="+fieldFindMode.name()+":" + getFieldNames(FieldsFilter.ALL); }
/** * @param filter (optional) indicates the fields to include in the count, can be null for defaults * @return the number of fields */ public int size(FieldsFilter filter) { int size; if (FieldsFilter.ALL.equals(filter)) { size = namesToProperties.size(); } else { size = getFieldNames(filter).size(); } return size; }
public <T> List<String> getFieldNames(Class<T> cls, FieldsFilter filter) { ClassFields<T> cf = analyzeClass(cls, findFieldFindMode(filter)); return cf.getFieldNames(); }
public <T> List<String> getFieldNames(Class<T> cls, FieldsFilter filter) { ClassFields<T> cf = analyzeClass(cls, findFieldFindMode(filter)); return cf.getFieldNames(); }