package org.geojson.object;

import java.util.List;

public class FeatureCollection {
	
	private List<Feature> features;
	
	public FeatureCollection(List<Feature> features) {
		this.features = features;
	}
	
	public Feature[] getFeatures() {
		return features.toArray(new Feature[0]);
	}
}
package org.geojson.object;

import java.util.List;

public class FeatureCollection {
	
	private final String type = "FeatureCollection";
	private List<Feature> features;
	
	public FeatureCollection(List<Feature> features) {
		this.features = features;
	}
	
	public String getType() {
		return this.type;
	}
	
	public Feature[] getFeatures() {
		return features.toArray(new Feature[0]);
	}
}

Update FeatureCollection.java