Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions library/src/com/twotoasters/clusterkraf/Clusterkraf.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;

import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Handler;

import android.view.View;

import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
Expand Down Expand Up @@ -49,7 +50,7 @@ public class Clusterkraf {
* @param options
* Customized options
*/
public Clusterkraf(GoogleMap map, Options options, ArrayList<InputPoint> points) {
public Clusterkraf(GoogleMap map, Options options, Collection<InputPoint> points) {
this.mapRef = new WeakReference<GoogleMap>(map);
this.options = options;
this.innerCallbackListener = new InnerCallbackListener(this);
Expand Down Expand Up @@ -89,7 +90,7 @@ public void add(InputPoint inputPoint) {
* @param inputPoints
* The list of InputPoint objects for clustering
*/
public void addAll(ArrayList<InputPoint> inputPoints) {
public void addAll(Collection<InputPoint> inputPoints) {
if (inputPoints != null) {
points.addAll(inputPoints);
updateClustersAndTransition();
Expand Down