|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutilities.Selection
public class Selection
Clase que contiene el método estático que se encarga de dejar el Vector items con el número de elementos indicado en select. Los elementos que se eliminan se escogen aleatoriamente. Si los elementos están marcados con required, siempre aparecerán en el test.
Constructor Summary | |
---|---|
Selection()
|
Method Summary | |
---|---|
static java.util.Vector |
getSelection(int select,
java.util.Vector items)
Método que recibe el número de elementos a seleccionar y el vector con los items, y devuelve el mismo vector del que se han borrado los items que sobran. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selection()
Method Detail |
---|
public static java.util.Vector getSelection(int select, java.util.Vector items)
select
- entero con el número de items a seleccionar.items
- objeto Vector con todos los items.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |