public static enum RxOrderedSet.OnDuplicate extends Enum<RxOrderedSet.OnDuplicate>
Enum Constant and Description |
---|
ERROR
Throws an error when a duplicate is encountered.
|
TAKE_FIRST
Resolve duplicates by taking the first duplicate in the list.
|
TAKE_LAST
Resolve duplicates by taking the last duplicate in the list.
|
Modifier and Type | Method and Description |
---|---|
static RxOrderedSet.OnDuplicate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RxOrderedSet.OnDuplicate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RxOrderedSet.OnDuplicate ERROR
public static final RxOrderedSet.OnDuplicate TAKE_FIRST
public static final RxOrderedSet.OnDuplicate TAKE_LAST
public static RxOrderedSet.OnDuplicate[] values()
for (RxOrderedSet.OnDuplicate c : RxOrderedSet.OnDuplicate.values()) System.out.println(c);
public static RxOrderedSet.OnDuplicate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null