public static List < Field > getInstanceFields ( Class type ) { List < Field > fields = Lists . newArrayList ( type . getDeclaredFields ( ) ) ; return ImmutableList . copyOf ( Iterables . filter ( fields , InstanceFieldPredicate . PREDICATE ) ) ; }
Return all non - static and non - transient fields .