public static enum PagedTopicData.Duplicates extends Enum<PagedTopicData.Duplicates>
ordered
mode.Enum Constant and Description |
---|
FIRST
If a duplicate line is added it will be inserted before the first
matching duplicate.
|
LAST
If a duplicate line is added it will be added after the last matching
duplicate.
|
NOT_ALLOWED
Duplicates are not allowed.
|
Modifier and Type | Method and Description |
---|---|
static PagedTopicData.Duplicates |
fromCode(String code)
Returns Duplicates enum from code value.
|
String |
getCode()
Returns the code used in message transmission for this enum.
|
static PagedTopicData.Duplicates |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PagedTopicData.Duplicates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PagedTopicData.Duplicates NOT_ALLOWED
If this is the policy then any attempt to add a duplicate will result in an exception.
public static final PagedTopicData.Duplicates FIRST
public static final PagedTopicData.Duplicates LAST
public static PagedTopicData.Duplicates[] values()
for (PagedTopicData.Duplicates c : PagedTopicData.Duplicates.values()) System.out.println(c);
public static PagedTopicData.Duplicates 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 nullpublic static PagedTopicData.Duplicates fromCode(String code)
code
- the Duplicates code.public String getCode()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.