I am having trouble understanding how to get certain instances of an object or class. Sorry for the newb question. I have a class called waypoint which contains some basic info about the waypoint, next im grabbing a list of the user's favorited waypoints from a server, then i check to see if the list of favorited waypoints from the server matches the list of favorited waypoints on the local device if it doesnt then i need to make them match and when trying to remove a instance of the waypoint I dont know how to remove the actual instance of it. My code is below:
waypoint.java
public class Waypoint
{
  public long id;
  public String name;
  public Bitmap bitmap;
  public boolean deleted;
  public int waypoint_type;
  public int waypoint_id;
  public Waypoint(long id, String name, Bitmap bitmap, int waypoint_type, int waypoint_id)
  {
    this.id = id;
    this.name = name;
    this.bitmap = bitmap;
    this.waypoint_type = waypoint_type;
    this.waypoint_id = waypoint_id;
  }
  public long getId() {
  return id;
  }
}
MainActivity.java
public ArrayList<Waypoint> mWaypoint = new ArrayList<>();
mWaypoint .add(new Waypoint(getNewId(), name, BitmapFactory.decodeResource(getResources(), R.drawable.stoplogo_small), stopTypeInteger, idInteger));
//attempt to remove it from my live list view
int pos = mAdapterWaypoint.getPosition(WaypointObjectGoesHere); //I dont know how to get this instance that I need here.
mAdapterWaypoint.remove(WaypointObjectGoesHere); //I dont know how to get this instance that I need here.
 
    