Ver Mensaje Individual
  #21 (permalink)  
Antiguo 21/07/2018, 21:53
Avatar de detective_jd
detective_jd
 
Fecha de Ingreso: abril-2011
Ubicación: Salto
Mensajes: 437
Antigüedad: 13 años
Puntos: 6
Respuesta: Balanceos con Árboles Hash

FuzzyLog gracias por responder, verás estuve haciendo unos cambios al código para comprobar el error en el 1er parámetro:

Código Java:
Ver original
  1. @Override
  2.             public Iterator<Entry<K, V>> iterator() {
  3.                 Entry<K,V> e;
  4.                 if(fromStart){
  5.                     e = m.getFirstEntry();
  6.                 } else if(loInclusive){
  7.                     e = m.getCeilingEntry(lo);
  8.                 } else {
  9.                     e = m.getHigherEntry(lo);
  10.                 }
  11.                 if(e == null || tooHigh(e.getKey())){
  12.                     e = null;
  13.                 }
  14.                 //return new SubMapEntryIterator(absLowest(), null);
  15.                 // en la variable e me marca el error
  16.                 return new SubMapEntryIterator(e, null);
  17.             }

y me cambió el error a esto:

Cita:
incompatible types: java.util.Map.Entry<K#1,V#1> cannot be converted to treemapsimple.MyTreeMap.Entry<K#2,V#2>
where K#1,V#1,K#2,V#2 are type-variables:
K#1 extends Object declared in class MyTreeMap.NavigableSubMap
V#1 extends Object declared in class MyTreeMap.NavigableSubM...
No se me ocurre nada, espero sus respuestas y saludos.
__________________
Si te interesa, visita mi perfil de Linkedin. Gracias