public void addWayRef(MapWay way,int nodeIdx){
  if (ways == null)   ways=new ArrayList<WayRef>(2);
  if (ways.isEmpty() || ways.get(0) != way)   ways.add(new DefaultWayRef(way,(short)nodeIdx));
}

public void addWayRef ( MapWay way , int nodeIdx ) { if ( ways == null ) ways = new ArrayList < WayRef > ( 2 ) ; if ( ways . isEmpty ( ) || ways . get ( 0 ) != way ) ways . add ( new DefaultWayRef ( way , ( short ) nodeIdx ) ) ; }
adds the information to the node that it is part of the specified way .
