Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2014, 03:58
jlgarcia1977
 
Fecha de Ingreso: octubre-2008
Ubicación: Madrid
Mensajes: 352
Antigüedad: 15 años, 6 meses
Puntos: 5
Borrar List<> enum de otro List<> de enum

Tengo un enum.
Código Java:
Ver original
  1. public enum TipologiaCotizacion {
  2.  
  3.     INDEFINIDO          ("Contrato indefinido"),
  4.     TEMPORAL_COMPLETA   ("Contrato temporal, tiempo completo"),
  5.     TEMPORAL_PARCIAL    ("Contrato temporal, tiempo parcial");
  6.  
  7.     public String key;
  8.  
  9.     private TipologiaCotizacion(String key) {
  10.         this.key = key;
  11.     }
  12.  
  13.     public String getKey() {
  14.         return key;
  15.     }
  16. }

Tengo dos List<TipologiaCotizacion>, pero no me funciona...
He provado list1.remove(list1) y no va...
Tampoco va list1.remove(valor.name()); <--recorriendo con un for el list2

Como puedo quitar un valor de tipo enum de un List<> de ese mismo tipo de enum.

Gracias.