Code example for TreeMap

Methods: lastKeyremovesize

0
        } 
        else { 
          Location.distanceBetween( lat, lon, address.getLatitude(), address.getLongitude(), results );        
          final float meters = results[0];
           
          if ( top.size() <= LIMIT ) {
            putWithBackoff( top, bssid, meters );
          } 
          else { 
            Float last = top.lastKey();
            if ( meters < last ) {
              top.remove( last );
              putWithBackoff( top, bssid, meters );
            } 
          } 
        } 
      } 
       
      public void complete() {         
        for ( final String bssid : top.values() ) {          
Contextual code suggestions in your IDE  Get Codota for Java