public class ItemHint extends java.lang.Object implements java.lang.Comparable<ItemHint>
ItemMetadata. Defines the list of possible values for a
particular item as ItemHint.ValueHint instances.
The name of the hint is the name of the related property with one major
exception for map types as both the keys and values of the map can have hints. In such
a case, the hint should be suffixed by ".keys" or ".values" respectively. Creating a
hint for a map using its property name is therefore invalid.
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemHint.ValueHint
A hint for a value.
|
static class |
ItemHint.ValueProvider
A value provider.
|
| Constructor and Description |
|---|
ItemHint(java.lang.String name,
java.util.List<ItemHint.ValueHint> values,
java.util.List<ItemHint.ValueProvider> providers) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ItemHint other) |
java.lang.String |
getName() |
java.util.List<ItemHint.ValueProvider> |
getProviders() |
java.util.List<ItemHint.ValueHint> |
getValues() |
static ItemHint |
newHint(java.lang.String name,
ItemHint.ValueHint... values) |
java.lang.String |
toString() |
public ItemHint(java.lang.String name,
java.util.List<ItemHint.ValueHint> values,
java.util.List<ItemHint.ValueProvider> providers)
public java.lang.String getName()
public java.util.List<ItemHint.ValueHint> getValues()
public java.util.List<ItemHint.ValueProvider> getProviders()
public int compareTo(ItemHint other)
compareTo in interface java.lang.Comparable<ItemHint>public static ItemHint newHint(java.lang.String name, ItemHint.ValueHint... values)
public java.lang.String toString()
toString in class java.lang.Object