public final class ColumnKey<T>
extends java.lang.Object
Identifier to be used with classes: Column and Columns.
Represents unique types keys to identify data columns. Allows optionally to set a string name for a key.
Note: class doesn't override default hash-code and equals functionality! Keys are immutable and unique "by instance" and may be compared by links.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
java.lang.Class<T> |
type |
| Constructor and Description |
|---|
ColumnKey(java.lang.Class<T> type)
Equal to
ColumnKey(Class, String) with null specified as name. |
ColumnKey(java.lang.Class<T> type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
java.lang.String |
toString() |
public final java.lang.Class<T> type
public final java.lang.String name
public ColumnKey(java.lang.Class<T> type)
ColumnKey(Class, String) with null specified as name.public ColumnKey(java.lang.Class<T> type, java.lang.String name)
type - required to be non-nullname - if null - string representation of the identity hash code will be used as a namepublic java.lang.Class<T> getType()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object