Class FormatKey<T>
java.lang.Object
org.monte.media.av.FormatKey<T>
- All Implemented Interfaces:
Serializable,Comparable<FormatKey<T>>
A FormatKey provides type-safe access to an attribute of
a
Format.
A format key has a name, a type and a value.
- Author:
- Werner Randelshofer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with the specified attribute key, type token class, default value null, and allowing null values.Creates a new instance with the specified attribute key, type token class, default value null, and allowing null values.Creates a new instance with the specified attribute key, type token class, default value null, and whether the key is just a comment. -
Method Summary
Modifier and TypeMethodDescriptionintgetKey()Returns the key string.getName()Returns the pretty name string.booleanisAssignable(Object value) Returns true if the specified value is assignable with this key.booleantoString()Returns the key string.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
FormatKey
-
FormatKey
-
FormatKey
-
-
Method Details
-
getKey
-
getName
-
toString
-
isAssignable
Returns true if the specified value is assignable with this key.- Parameters:
value-- Returns:
- True if assignable.
-
isComment
public boolean isComment() -
getValueClass
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-