private ClassInfo classInfoFromMetaBean ( MetaBean metaBean , Class < ? > aClass ) { MetaProperty < ? > [ ] metaProperties = StreamSupport . stream ( metaBean . metaPropertyIterable ( ) . spliterator ( ) , false ) . filter ( metaProp -> settings . isSerialized ( metaProp ) ) . toArray ( MetaProperty < ? > [ ] :: new ) ; // Positions get recreated when all classes have been recorded return new ClassInfo ( aClass , metaProperties ) ; }
converts a meta - bean to a ClassInfo