| java.lang.Object | ||
| ↳ | com.google.gdata.model.MetadataKey<D> | |
| ↳ | com.google.gdata.model.AttributeKey<D> | |
A key referring to a particular attribute. Holds the ID of the attribute and the expected datatype. Attribute keys support value-based equality, natural ordering, and matching.
equals(Object) to another attribute key if
their IDs are equal and the datatypes are the same.matches(MetadataKey) another attribute key if
the ID is a match for the ID of the other key, and the datatype is assignable
from the other key's datatype.|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.MetadataKey
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares first on ID, then on datatype.
| |||||||||||
Returns
true if this key is a match for the given key. | |||||||||||
Construct and return a new attribute key with the default datatype of
String.
| |||||||||||
Construct and return a new attribute key with the given id and datatype.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.MetadataKey
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Compares first on ID, then on datatype.
| other |
|---|
| obj |
|---|
Returns true if this key is a match for the given key. This key
is a match for the other key if the other key is also an attribute key and
if its ID and datatype match.
| other |
|---|
Construct and return a new attribute key with the default datatype of
String. The id must not be null.
| id |
|---|
Construct and return a new attribute key with the given id and datatype.
Both id and datatype must not be null, or a
NullPointerException will be thrown.
| id | |
|---|---|
| datatype |