public enum StatementRank extends Enum<StatementRank>
By default, Statements are of "normal" rank. The rank "preferred" can be given to Statements that should be preferred when using the data without more specific selection criteria (for example, there can be many population numbers for one city, but only the most current/accurate one should be shown by default, hence it should be preferred). The rank "deprecated" is used for Statements that should not normally be considered, but which are still stored for some reason (maybe because their status is disputed or because they record a known wrong claim of a respected source).
Enum Constant and Description |
---|
DEPRECATED |
NORMAL |
PREFERRED |
Modifier and Type | Method and Description |
---|---|
static StatementRank |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatementRank[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatementRank PREFERRED
public static final StatementRank NORMAL
public static final StatementRank DEPRECATED
public static StatementRank[] values()
for (StatementRank c : StatementRank.values()) System.out.println(c);
public static StatementRank 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 nullCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage