/** * Create a new instance of this class by giving the feature collection a list of * {@link Feature}s. The list of features itself isn't null but it can empty and have a size of 0. * * @param features a list of features * @return a new instance of this class defined by the values passed inside this static factory * method * @since 1.0.0 */ public static FeatureCollection fromFeatures(@NonNull List<Feature> features) { return new AutoValue_FeatureCollection(TYPE, null, features); }
/** * Create a new instance of this class by giving the feature collection a list of * {@link Feature}s. The list of features itself isn't null but it can empty and have a size of 0. * * @param features a list of features * @return a new instance of this class defined by the values passed inside this static factory * method * @since 1.0.0 */ public static FeatureCollection fromFeatures(@NonNull List<Feature> features) { return new AutoValue_FeatureCollection(TYPE, null, features); }
/** * Create a new instance of this class by giving the feature collection a single {@link Feature}. * * @param feature a single feature * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static FeatureCollection fromFeature(@NonNull Feature feature) { List<Feature> featureList = Arrays.asList(feature); return new AutoValue_FeatureCollection(TYPE, null, featureList); }
/** * Create a new instance of this class by giving the feature collection a single {@link Feature}. * * @param feature a single feature * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static FeatureCollection fromFeature(@NonNull Feature feature) { List<Feature> featureList = Arrays.asList(feature); return new AutoValue_FeatureCollection(TYPE, null, featureList); }
/** * Create a new instance of this class by giving the feature collection an array of * {@link Feature}s. The array of features itself isn't null but it can be empty and have a length * of 0. * * @param features an array of features * @return a new instance of this class defined by the values passed inside this static factory * method * @since 1.0.0 */ public static FeatureCollection fromFeatures(@NonNull Feature[] features) { return new AutoValue_FeatureCollection(TYPE, null, Arrays.asList(features)); }
/** * Create a new instance of this class by giving the feature collection an array of * {@link Feature}s. The array of features itself isn't null but it can be empty and have a length * of 0. * * @param features an array of features * @return a new instance of this class defined by the values passed inside this static factory * method * @since 1.0.0 */ public static FeatureCollection fromFeatures(@NonNull Feature[] features) { return new AutoValue_FeatureCollection(TYPE, null, Arrays.asList(features)); }
/** * Create a new instance of this class by giving the feature collection a list of * {@link Feature}s. The list of features itself isn't null but it can be empty and have a size of * 0. * * @param features a list of features * @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 */ public static FeatureCollection fromFeatures(@NonNull List<Feature> features, @Nullable BoundingBox bbox) { return new AutoValue_FeatureCollection(TYPE, bbox, features); }
/** * 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 */ public static FeatureCollection fromFeature(@NonNull Feature feature, @Nullable BoundingBox bbox) { List<Feature> featureList = Arrays.asList(feature); return new AutoValue_FeatureCollection(TYPE, bbox, featureList); }
/** * Create a new instance of this class by giving the feature collection a list of * {@link Feature}s. The list of features itself isn't null but it can be empty and have a size of * 0. * * @param features a list of features * @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 */ public static FeatureCollection fromFeatures(@NonNull List<Feature> features, @Nullable BoundingBox bbox) { return new AutoValue_FeatureCollection(TYPE, bbox, features); }
/** * Create a new instance of this class by giving the feature collection an array of * {@link Feature}s. The array of features itself isn't null but it can be empty and have a length * of 0. * * @param features an array of features * @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 */ public static FeatureCollection fromFeatures(@NonNull Feature[] features, @Nullable BoundingBox bbox) { return new AutoValue_FeatureCollection(TYPE, bbox, Arrays.asList(features)); }
/** * 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 */ public static FeatureCollection fromFeature(@NonNull Feature feature, @Nullable BoundingBox bbox) { List<Feature> featureList = Arrays.asList(feature); return new AutoValue_FeatureCollection(TYPE, bbox, featureList); }
/** * Create a new instance of this class by giving the feature collection an array of * {@link Feature}s. The array of features itself isn't null but it can be empty and have a length * of 0. * * @param features an array of features * @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 */ public static FeatureCollection fromFeatures(@NonNull Feature[] features, @Nullable BoundingBox bbox) { return new AutoValue_FeatureCollection(TYPE, bbox, Arrays.asList(features)); }