public class RandomPool<T> extends Object
Constructor and Description |
---|
RandomPool(List<T> items)
Constructor for the RandomPool that takes a list of items.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the RandomPool.
|
boolean |
equals(Object object) |
T |
get()
Get a random item from the pool.
|
int |
hashCode() |
String |
toString() |
public T get()
public void clear()
Copyright © 2021. All rights reserved.