public static FeatureCollection fromFeature(@NonNull Feature feature,
                                              @Nullable BoundingBox bbox) {
    List<Feature> featureList = Arrays.asList(feature);
    return new FeatureCollection(TYPE, bbox, featureList);
  }
public static FeatureCollection fromFeature ( @ NonNull Feature feature , @ Nullable BoundingBox bbox ) { List < Feature > featureList = Arrays . asList ( feature ) ; return new FeatureCollection ( TYPE , bbox , featureList ) ; }
Create a new instance of this class by giving the feature collection a single {@link Feature}.

@param feature a single feature
@param bbox    optionally include a bbox definition as a double array
@return a new instance of this class defined by the values passed inside this static factory
method
@since 3.0.0