public static < P > DirectMetaProperty < P > ofImmutable ( MetaBean metaBean , String propertyName , Class < ? > declaringType , Class < P > propertyType ) { Field field = findField ( metaBean , propertyName ) ; return new DirectMetaProperty <> ( metaBean , propertyName , declaringType , propertyType , PropertyStyle . IMMUTABLE , field ) ; }
Factory to create an imutable meta - property avoiding duplicate generics .