public class ListSelection<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <V> ListSelection<V> |
create(java.util.List<V> list,
V selected) |
static <V> ListSelection<V> |
create(V [] array,
V selected) |
static <V> ListSelection<V> |
createAt(java.util.List<V> list,
int selectedIndex) |
static <V> ListSelection<V> |
createSingleton(V element) |
java.util.List<T> |
getList() |
int |
getSelectedIndex() |
boolean |
isEmpty() |
<V> ListSelection<V> |
map(NullableFunction<? super T,? extends V> convertor) |
public static <V> ListSelection<V> createAt(java.util.List<V> list, int selectedIndex)
public static <V> ListSelection<V> create(java.util.List<V> list, V selected)
public static <V> ListSelection<V> create(V [] array, V selected)
public static <V> ListSelection<V> createSingleton(V element)
public java.util.List<T> getList()
public int getSelectedIndex()
public boolean isEmpty()
public <V> ListSelection<V> map(NullableFunction<? super T,? extends V> convertor)