Package ancheta.tablaHash
Class TablaHash<K,V extends java.lang.Comparable<V>>
- java.lang.Object
-
- ancheta.tablaHash.TablaHash<K,V>
-
- All Implemented Interfaces:
ITablaHash<K,V>
,java.io.Serializable
,java.lang.Iterable<V>
public class TablaHash<K,V extends java.lang.Comparable<V>> extends java.lang.Object implements ITablaHash<K,V>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TablaHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
darCantidadElementosIterables()
int
darCantidadElementosTabla()
int
darLargo()
V
get(K llave)
java.lang.Object[]
getGroup(K llave)
java.util.Iterator<V>
iterator()
java.util.Iterator<V>
iteratorInverso()
void
put(K llave, V valor)
V
remove(K llave)
-
-
-
Method Detail
-
darCantidadElementosIterables
public int darCantidadElementosIterables()
- Specified by:
darCantidadElementosIterables
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
darCantidadElementosTabla
public int darCantidadElementosTabla()
- Specified by:
darCantidadElementosTabla
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
get
public V get(K llave)
- Specified by:
get
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
getGroup
public java.lang.Object[] getGroup(K llave)
- Specified by:
getGroup
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
put
public void put(K llave, V valor) throws ElementoRepetidoException
- Specified by:
put
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Throws:
ElementoRepetidoException
-
remove
public V remove(K llave)
- Specified by:
remove
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
iterator
public java.util.Iterator<V> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
iteratorInverso
public java.util.Iterator<V> iteratorInverso()
- Specified by:
iteratorInverso
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
darLargo
public int darLargo()
- Specified by:
darLargo
in interfaceITablaHash<K,V extends java.lang.Comparable<V>>
- Returns:
-
-