Package ancheta.arrayChimbo
Class ArrayChimbo<T>
- java.lang.Object
-
- ancheta.arrayChimbo.ArrayChimbo<T>
-
- All Implemented Interfaces:
IArrayChimbo<T>
,java.io.Serializable
,java.lang.Iterable<T>
public class ArrayChimbo<T> extends java.lang.Object implements IArrayChimbo<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayChimbo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
agregar(T elemento)
T
get(int pos)
T
getRandom()
int
getSize()
java.util.Iterator<T>
iterator()
T
remove(int pos)
java.lang.Object[]
sort()
-
-
-
Method Detail
-
agregar
public void agregar(T elemento)
- Specified by:
agregar
in interfaceIArrayChimbo<T>
-
get
public T get(int pos)
- Specified by:
get
in interfaceIArrayChimbo<T>
- Returns:
-
getRandom
public T getRandom()
- Specified by:
getRandom
in interfaceIArrayChimbo<T>
- Returns:
-
getSize
public int getSize()
- Returns:
-
remove
public T remove(int pos)
- Specified by:
remove
in interfaceIArrayChimbo<T>
- Returns:
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
sort
public java.lang.Object[] sort()
- Specified by:
sort
in interfaceIArrayChimbo<T>
- Returns:
-
-